I tried using Android Emulator in Jenkins, I follow this guide: Jenkins Plugin
I do this from headless machines, CentOS. I tried to create an emulator in jenkins, as in the example
When I try to do this, as in the example , but with my version I get this error from jenkins:
PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/opt/android-sdk_r24.2-linux]!
[android] Emulator did not appear to start; giving up
[android] Stopping Android emulator
$ /opt/android-sdk_r24.2-linux/platform-tools/adb kill-server
Finished: NOT_BUILT
I am also trying to do, as a second example, I wrote "avroid list avd" in my get terminal:
Available Android Virtual Devices:
Name: android-23-emulator
Path: /root/.android/avd/android-23-emulator.avd
Target: Google APIs (Google Inc.)
Based on Android 4.2.2 (API level 17)
Tag/ABI: default/armeabi-v7a
put the name "android-23-emulator" in the name of AVD. And jenkins do not search this in the right folder, got this error:
FATAL: /var/lib/jenkins/.android/avd/android-23-emulator.ini (No such file or directory)
java.io.FileNotFoundException: /var/lib/jenkins/.android/avd/android-23-emulator.ini (No such file or directory)
When is my:
ANDROID_AVD_HOME=/root/.android/avd
ANDROID_HOME=/opt/android-sdk_r24.2-linux
ANDROID_SDK_ROOT=/opt/android-sdk_r24.2-linux
I will be happy for any help! thank!
source
share