Return to site

Docker for mac doesnt work when android emulator running

broken image
broken image

We’ll use /android/emulator to run android device. 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 Since CircleCI 2.0, the recommended build environment for most projects is the Docker Executor. With a little tinkering, though, we can make it work in another environment What Doesn’t Work. LD_LIBRARY_PATH= $ANDROID_HOME/emulator/lib64:$ ANDROID_HOME/emulator/lib64/qt/lib The Android Emulator, unfortunately, doesn’t work in CircleCI’s conventional (Docker-based) Android build environment.

broken image

AVD created under Linux will also create qcow2 files for each image, with these qcow2 files, emulator. PATH=$ PATH:$ GRADLE_HOME/bin:/opt/gradlew:$ ANDROID_HOME/emulator:$ ANDROID_HOME/tools/bin:$ ANDROID_HOME/platform-tools This is not about the root cause but a workaround. bashrc or any config files that you’re familiar with: $ /opt/android/emulator/emulator -list-avdsĮdit your.