-
Bug
-
Resolution: Unresolved
-
Major
-
None
Emulator is not launching in a Multi Config Matrix job
18:58:02 Building in workspace /Users/mobile_team/.jenkins/multiConfigTestJob/density=xxhdpi,os=android-28,resolution=1080x1920-21/density/xxhdpi/os/android-28/resolution/1080x1920*18:58:02* $ /Users/mobile_team/Library/Android/sdk/tools/bin/avdmanager list target
18:58:04 $ /Users/mobile_team/Library/Android/sdk/tools/bin/sdkmanager -list --verbose*18:58:07* Warning: File /Users/mobile_team/.jenkins/multiConfigTestJob/density=xxhdpi,os=android-28,resolution=1080x1920-21/density/xxhdpi/os/android-28/resolution/1080x1920/.android/repositories.cfg could not be loaded.
18:58:09 [android] Using Android SDK: /Users/mobile_team/Library/Android/sdk
18:58:09 [android] Creating Android AVD: /Users/mobile_team/.jenkins/multiConfigTestJob/density=xxhdpi,os=android-28,resolution=1080x1920-21/density/xxhdpi/os/android-28/resolution/1080x1920/.android/avd/hudson_en-US_420_1080x1920_android-28_google_apis-x86_multiConfigTestJob-density-xxhdpi-os-android-28-resolution-1080x1920-21.avd
18:58:09 [android] /Users/mobile_team/Library/Android/sdk/tools/bin/avdmanager create avd -f -c 512M -n hudson_en-US_420_1080x1920_android-28_google_apis-x86_multiConfigTestJob-density-xxhdpi-os-android-28-resolution-1080x1920--21 -k system-images;android-28;google_apis;x86 --tag google_apis
18:58:10 Loading local repository...
18:58:10 [========= ] 25% Loading local repository...
18:58:11 [========= ] 25% Fetch remote repository...
18:58:11 [========= ] 25% Fetch remote repository...
18:58:11 [========= ] 25% Fetch remote repository...
18:58:11 [=======================================] 100% Fetch remote repository...
18:58:11 Auto-selecting single ABI x86*18:58:11* Do you wish to create a custom hardware profile? [no]
18:58:14 $ /Users/mobile_team/Library/Android/sdk/platform-tools/adb start-server
18:58:14 * daemon not running; starting now at tcp:5864
18:58:17 * daemon started successfully
18:58:17 $ /Users/mobile_team/Library/Android/sdk/platform-tools/adb start-server
18:58:17 [android] Starting Android emulator
18:58:17 $ /Users/mobile_team/Library/Android/sdk/emulator/emulator skin 1080x1920 -ports 5760,5761 -report-console tcp:5821,max=60 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_420_1080x1920_android-28_google_apis-x86_multiConfigTestJob-density-xxhdpi-os-android-28-resolution-1080x1920-21 -wipe-data -noaudio
18:58:18 Refreshing RAM file (size mismatch): existing 0 curr 1610612736
18:58:21 emulator: WARNING: cannot read adb public key file: /Users/mobile_team/.jenkins/multiConfigTestJob/density=xxhdpi,os=android-28,resolution=1080x1920-21/density/xxhdpi/os/android-28/resolution/1080x1920/.android/adbkey.pub
18:58:21 qemu-system-x86_64: -drive if=none,index=1,id=cache,file=/Users/mobile_team/.jenkins/multiConfigTestJob/density=xxhdpi,os=android-28,resolution=1080x1920-21/density/xxhdpi/os/android-28/resolution/1080x1920/.android/avd/hudson_en-US_420_1080x1920_android-28_google_apis-x86_multiConfigTestJob-density-xxhdpi-os-android-28-resolution-1080x1920--21.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576: Could not open '/Users/mobile_team/.jenkins/multiConfigTestJob/density=xxhdpi': No such file or directory
18:59:22 [android] Emulator did not appear to start; giving up
18:59:22 [android] Stopping Android emulator
18:59:22 $ /Users/mobile_team/Library/Android/sdk/platform-tools/adb kill-server
18:59:22 Performing Post build task...
18:59:22 Match found for : : True
18:59:22 Logical operation result is TRUE
18:59:22 Skipping post build task 0 - job status is worse than unstable : NOT_BUILT
18:59:22 Archiving artifacts
18:59:22 Finished: NOT_BUILT
It seems to be the Path is getting truncated when the plugin is trying to open the AVD.
I have this option enabled in jenkins configuration: Keep emulators in the job workspace, in the .android subdirectory, to isolate them as much as possible