You could also use the AVD Manager and Wait for Android emulator steps to spin up an Emulator on Bitrise locally and then run all your tests with Gradle, but you don't have full control. The workaround is to also run app:assembleDebug for your library module tests. We’ll use /android/emulator to run android device. Running tests in a library module doesn't work unless an app APK is also present. Note: The order of PATH variable is important because android provides 2 executed file for emulator, one is packaged in /android/emulator and another is in /android/tools/bin. Then reflect the changes with source ~/.bashrc LD_LIBRARY_PATH= $ANDROID_HOME/emulator/lib64:$ ANDROID_HOME/emulator/lib64/qt/lib PATH=$ PATH:$ GRADLE_HOME/bin:/opt/gradlew:$ ANDROID_HOME/emulator:$ ANDROID_HOME/tools/bin:$ ANDROID_HOME/platform-tools bashrc or any config files that you’re familiar with: $ /opt/android/emulator/emulator -list-avdsĮdit your.