Hi I had a build script on travis that would install the android-sdk and launch an emulator in headless mode, it worked fine until a day ago when suddenly I get an error
bash: /home/travis/android-sdk/emulator/emulator-headless: No such file or directory
here is the build script, any ideas as to why emulator-headless disappeared?
https://gist.github.com/mandelmonkey/941ef6e64b0d83a1b7dc8e17848b70a8
As of 29.2.11, you need to use the -no-window option instead of the emulator-headless binary: The binary emulator-headless is now retired. Headless builds of the engine are now launched via emulator -no-window, thus unifying the previously separate (but similar) paths.
If you are experiencing problems with "unauthorized" emulators, do the following troubleshooting steps: Exit all emulators. Delete both the ~/.android/adbkey and ~/.android/adbkey.pub files. Run the following command: adb kill-server Run the following command: adb devices Wipe the AVD data. Relaunch the emulator.
The Linux version of the Android Emulator is now built using a modern Clang C++ toolchain. This change fixes the issue of the emulator failing to start due to libGL and libstdc++ errors. Fixed several causes of crashes and hangs.
If the emulator is unable to start due to insufficient free RAM, an error message is now displayed. If you are on Windows and notice that there is RAM free, but you are still unable to start the emulator, the commit charge may have been exceeded. For help with this issue, see the emulator Troubleshooting page.
Since Emulator v29.2.11, emulator-headless
is no longer present as a separate binary, but it has been merged to emulator -no-window
.
https://androidstudio.googleblog.com/2019/12/emulator-29211-and-amd-hypervisor-12-to.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With