Jenkins Android Emulator plugin is no longer working

2,031 views
Skip to first unread message

Sam Xiao

unread,
Aug 23, 2012, 5:52:06 PM8/23/12
to jenkins...@googlegroups.com
Hi all,

I updated the Android SDK in my build machine, so I can now run ICS emulator image, but now Jenkins is failing to launch Android Emulator with it. This very same machine + setup used to work well with my Gingerbread setup.

Not sure what's the issue, but here is the log I got. Is there any other place I can look for log?

Jenkins version: Jenkins ver. 1.472
Android Emulator plugin version: 2.3
Android SDK revision: 20.0.3



Starting xvnc [workspace] $ /usr/bin/vncserver :2 -geometry 1024x768 New 'X' desktop is localhost:2 Starting applications specified in /var/lib/jenkins/.vnc/xstartup Log file is /var/lib/jenkins/.vnc/localhost:2.log $ /android_sdk/android-sdk-linux/tools/android list target [android] Using Android SDK: /android_sdk/android-sdk-linux [android] Waiting 60 seconds before starting emulator... $ /android_sdk/android-sdk-linux/platform-tools/adb start-server [android] Starting Android emulator $ /android_sdk/android-sdk-linux/tools/emulator -no-boot-anim -ports 48312,49016 -avd ics -no-snapshot-load -no-snapshot-save -no-window * daemon not running. starting it now on port 58303 * * daemon started successfully * [android] Emulator did not appear to start; giving up $ /android_sdk/android-sdk-linux/platform-tools/adb disconnect localhost:49016 [android] Stopping Android emulator $ /android_sdk/android-sdk-linux/platform-tools/adb kill-server Terminating xvnc. $ /usr/bin/vncserver -kill :2 Killing Xtightvnc process ID 16012 Archiving artifacts Checking console output No emails were triggered. Finished: NOT_BUILT

Christopher Orr

unread,
Aug 24, 2012, 7:49:06 AM8/24/12
to jenkins...@googlegroups.com
Hi there,

Somebody else already reported this to me and filed an issue about it:
http://jenkins-ci.org/issue/14901

It seems to be an issue starting with SDK Tools r20.0.3 -- I'll check it
out.

Regards,
Chris


On 08/23/2012 11:52 PM, Sam Xiao wrote:
> Hi all,
>
> I updated the Android SDK in my build machine, so I can now run ICS emulator image, but now Jenkins is failing to launch Android Emulator with it. This very same machine + setup used to work well with my Gingerbread setup.
>
> Not sure what's the issue, but here is the log I got. Is there any other place I can look for log?
>
> Jenkins version:Jenkins ver. 1.472 <http://jenkins-ci.org/>
> Android Emulator plugin version: 2.3 <http://105.68.13.72:8080/pluginManager/plugin/android-emulator/thirdPartyLicenses>
> Android SDK revision: 20.0.3
>
>
>
> Starting xvnc
> [workspace] $ /usr/bin/vncserver :2 -geometry 1024x768
>
> New 'X' desktop is localhost:2
>
> Starting applications specified in /var/lib/jenkins/.vnc/xstartup
> Log file is /var/lib/jenkins/.vnc/localhost:2.log
>
> $ /android_sdk/android-sdk-linux/tools/android list target
> [android] Using Android SDK: /android_sdk/android-sdk-linux
> [android] Waiting 60 seconds before starting emulator...
> $ /android_sdk/android-sdk-linux/platform-tools/adb start-server
> [android] Starting Android emulator
> $ /android_sdk/android-sdk-linux/tools/emulator -no-boot-anim -ports 48312,49016 -avd ics -no-snapshot-load -no-snapshot-save -no-window
> * daemon not running. starting it now on port 58303 *
> * daemon started successfully *
> *[android] Emulator did not appear to start; giving up*

Christopher Orr

unread,
Aug 27, 2012, 5:08:00 PM8/27/12
to jenkins...@googlegroups.com
Hi again,

As I just wrote in http://jenkins-ci.org/issue/14901 -- I'm really
having a tough time reproducing this myself.

Can you give any other hints about your environment? Which OS? 32- or
64-bit? Did this work on a previous version of the Android SDK Tools --
if so, which version? Are your jobs running on the master, or on a slave?

Any help or ideas would be appreciated!

Thanks,
Chris


On 08/23/2012 11:52 PM, Sam Xiao wrote:
> Hi all,
>
> I updated the Android SDK in my build machine, so I can now run ICS emulator image, but now Jenkins is failing to launch Android Emulator with it. This very same machine + setup used to work well with my Gingerbread setup.
>
> Not sure what's the issue, but here is the log I got. Is there any other place I can look for log?
>
> Jenkins version:Jenkins ver. 1.472 <http://jenkins-ci.org/>
> Android Emulator plugin version: 2.3 <http://105.68.13.72:8080/pluginManager/plugin/android-emulator/thirdPartyLicenses>
> Android SDK revision: 20.0.3
>
>
>
> Starting xvnc
> [workspace] $ /usr/bin/vncserver :2 -geometry 1024x768
>
> New 'X' desktop is localhost:2
>
> Starting applications specified in /var/lib/jenkins/.vnc/xstartup
> Log file is /var/lib/jenkins/.vnc/localhost:2.log
>
> $ /android_sdk/android-sdk-linux/tools/android list target
> [android] Using Android SDK: /android_sdk/android-sdk-linux
> [android] Waiting 60 seconds before starting emulator...
> $ /android_sdk/android-sdk-linux/platform-tools/adb start-server
> [android] Starting Android emulator
> $ /android_sdk/android-sdk-linux/tools/emulator -no-boot-anim -ports 48312,49016 -avd ics -no-snapshot-load -no-snapshot-save -no-window
> * daemon not running. starting it now on port 58303 *
> * daemon started successfully *
> *[android] Emulator did not appear to start; giving up*
Message has been deleted
Message has been deleted
Message has been deleted

Christopher Orr

unread,
Aug 31, 2012, 6:17:49 PM8/31/12
to jenkins...@googlegroups.com
No, that's JENKINS-13420.

Chris


On 08/29/2012 12:49 AM, SamL wrote:
> Hello Folks.
> I am seeing the same problem
>
> Jenkins Core 1.459
> Android Emulator Plugin
> <http://wiki.jenkins-ci.org/display/JENKINS/Android+Emulator+Plugin> 2.1
>
> My slave is a 64Bit MacOs
>
> ProductName: Mac OS X Server
> ProductVersion: 10.7.4
>
>
> uname -a
> Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012;
> root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
>
> FATAL: Unable to serialize hudson.plugins.android_emulator.SdkInstaller$2@74102cd4
> java.io.IOException <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Unable to serialize hudson.plugins.android_emulator.SdkInstaller$2@74102cd4
> athudson.remoting.UserRequest.serialize(UserRequest.java:166) <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.serialize&entity=method>
> athudson.remoting.UserRequest.<init>(UserRequest.java:62) <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.%3Cinit%3E&entity=method>
> athudson.remoting.Channel.call(Channel.java:645) <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.call&entity=method>
> athudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator(SdkInstaller.java:310) <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator&entity=method>
> athudson.plugins.android_emulator.SdkInstaller.getPlatformForEmulator(SdkInstaller.java:294) <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.android_emulator.SdkInstaller.getPlatformForEmulator&entity=method>
> athudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:173) <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.android_emulator.SdkInstaller.installDependencies&entity=method>
> athudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:246) <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.android_emulator.AndroidEmulator.setUp&entity=method>
> athudson.model.Build$RunnerImpl.doRun(Build.java:133) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$RunnerImpl.doRun&entity=method>
> athudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractRunner.run&entity=method>
> athudson.model.Run.run(Run.java:1413) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.run&entity=method>
> athudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
> athudson.model.ResourceController.execute(ResourceController.java:88) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
> athudson.model.Executor.run(Executor.java:238) <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
> Caused by:java.io.NotSerializableException <http://stacktrace.jenkins-ci.org/search?query=java.io.NotSerializableException>: hudson.Launcher$RemoteLauncher
> atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180) <http://stacktrace.jenkins-ci.org/search/?query=java.io.ObjectOutputStream.writeObject0&entity=method>
> atjava.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) <http://stacktrace.jenkins-ci.org/search/?query=java.io.ObjectOutputStream.defaultWriteFields&entity=method>
> atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) <http://stacktrace.jenkins-ci.org/search/?query=java.io.ObjectOutputStream.writeSerialData&entity=method>
> atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) <http://stacktrace.jenkins-ci.org/search/?query=java.io.ObjectOutputStream.writeOrdinaryObject&entity=method>
> atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) <http://stacktrace.jenkins-ci.org/search/?query=java.io.ObjectOutputStream.writeObject0&entity=method>
> atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) <http://stacktrace.jenkins-ci.org/search/?query=java.io.ObjectOutputStream.writeObject&entity=method>
> athudson.remoting.UserRequest._serialize(UserRequest.java:155) <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest._serialize&entity=method>
> athudson.remoting.UserRequest.serialize(UserRequest.java:164) <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.serialize&entity=method>
> ... 12 more
>
>
>
> On Thursday, August 23, 2012 2:52:06 PM UTC-7, Sam Xiao wrote:
>
> Hi all,
>
> I updated the Android SDK in my build machine, so I can now run ICS emulator image, but now Jenkins is failing to launch Android Emulator with it. This very same machine + setup used to work well with my Gingerbread setup.
>
> Not sure what's the issue, but here is the log I got. Is there any other place I can look for log?
>
> Jenkins version:Jenkins ver. 1.472 <http://jenkins-ci.org/>
> Android Emulator plugin version: 2.3 <http://105.68.13.72:8080/pluginManager/plugin/android-emulator/thirdPartyLicenses>
> Android SDK revision: 20.0.3
>
>
>
> Starting xvnc
> [workspace] $ /usr/bin/vncserver :2 -geometry 1024x768
>
> New 'X' desktop is localhost:2
>
> Starting applications specified in /var/lib/jenkins/.vnc/xstartup
> Log file is /var/lib/jenkins/.vnc/localhost:2.log
>
> $ /android_sdk/android-sdk-linux/tools/android list target
> [android] Using Android SDK: /android_sdk/android-sdk-linux
> [android] Waiting 60 seconds before starting emulator...
> $ /android_sdk/android-sdk-linux/platform-tools/adb start-server
> [android] Starting Android emulator
> $ /android_sdk/android-sdk-linux/tools/emulator -no-boot-anim -ports 48312,49016 -avd ics -no-snapshot-load -no-snapshot-save -no-window
> * daemon not running. starting it now on port 58303 *
> * daemon started successfully *
> *[android] Emulator did not appear to start; giving up*

Akash Rai

unread,
Mar 30, 2016, 2:44:36 AM3/30/16
to Jenkins Users
Hi all,

I recently integrated Android SDK with jenkins, i tried to run the emulator, but now Jenkins is failing to launch Android Emulator with it.
the skin of emulator was availble with the sdk.
Not sure what's the issue, but here is the log I got. Is there any other place I can look for log?

Jenkins version: Jenkins ver. 1.472
Android Emulator plugin version: 2.13.1
Android SDK revision: 25.0.4



 > git config --local --remove-section credential # timeout=10
 > git rev-parse refs/remotes/origin/shiksha_espresso_automation^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/shiksha_espresso_automation^{commit} # timeout=10
Checking out Revision c23e38160697c68821f85d646305dc07dd9b79d3 (refs/remotes/origin/shiksha_espresso_automation)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f c23e38160697c68821f85d646305dc07dd9b79d3
 > git rev-list c23e38160697c68821f85d646305dc07dd9b79d3 # timeout=10
$ /home/akash/Android/Sdk/tools/android list target
[android] Using Android SDK: /home/akash/Android/Sdk
[android] Waiting 100 seconds before starting emulator...
$ /home/akash/Android/Sdk/platform-tools/adb start-server
* daemon not running. starting it now on port 6637 *
* daemon started successfully *
$ /home/akash/Android/Sdk/platform-tools/adb start-server
$ /home/akash/Android/Sdk/tools/emulator -snapshot-list -no-window -avd nexus
[android] Starting Android emulator and creating initial snapshot
[android] Erasing existing emulator data...
$ /home/akash/Android/Sdk/tools/emulator -ports 6635,6636 -avd nexus -no-snapshot-load -no-snapshot-save -wipe-data -no-window
WARNING: SD Card image already in use: /home/akash/.android/avd/nexus.avd/sdcard.img
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
emulator: WARNING: userdata image already in use, changes will not persist!

emulator: WARNING: cache image already in use, changes will not persist!

[android] Emulator did not appear to start; giving up
$ /home/akash/Android/Sdk/platform-tools/adb disconnect localhost:6636
error: no such device 'localhost:6636'
[android] Stopping Android emulator
$ /home/akash/Android/Sdk/platform-tools/adb kill-server
Archiving artifacts
Finished: NOT_BUILT

Christopher Orr

unread,
Apr 6, 2016, 7:20:03 PM4/6/16
to jenkins...@googlegroups.com
According to the log, your AVD called "nexus" is already running, so
Jenkins isn't able to start it.

Regards,
Chris
> <http://105.68.13.72:8080/pluginManager/plugin/android-emulator/thirdPartyLicenses <http://105.68.13.72:8080/pluginManager/plugin/android-emulator/thirdPartyLicenses>>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/a5682922-711e-45f1-aaab-44b6e7979dc5%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/a5682922-711e-45f1-aaab-44b6e7979dc5%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages