This project uses the Gradle build system. You don't need an IDE to build and execute it but Android Studio is recommended.
- Download the project code, preferably using
git clone. - In Android Studio, select File | Open... and point to the
./build.gradlefile. - Check out the relevant code:
- The C++ sources and tests are in
src/main/cpp - The device tests (which wrap the native tests) are in
src/androidTest/java
- The C++ sources and tests are in
- Create and run the Instrumented test configuration
- Open the
AdderTestfile, and click the run icon in the gutter, or - Manually create a configuration.
- Open Run menu | Edit Configurations
- Add a new Android Instrumented Tests configuration
- Choose the
appmodule - Connect a device or start an emulator
- Run the newly created configuration
- Open the
If you are using Android Studio, the Run window will show the test results.