Jenkins + Android: Two Problems. Please help.

611 views
Skip to first unread message

Ravi A

unread,
Jul 18, 2016, 2:23:06 AM7/18/16
to Jenkins Users

I am new to Android related work and Jenkins. Currently I am facing two problems as explained below and need help about these two problems. Kindly do the needful.

I am using one "Ubuntu v14.04.4 LTS x64 Desktop Edition" based physical host (VT enabled from BIOS, Intel(R) Core(TM) i5-3470 CPU) and following software also installed.

Gradle v2.14
Ant v1.9.7
Maven 3.3.9
android-sdk_r24.4.1
java version "1.8.0_92"
Android_Studio_v2.1.2.0   (android-studio-ide-143.2915827)
KVM/Qemu
Jenkins v2.7.1 CI server with following Android related "Jenkins Plugins"
        Android Emulator Plugin v2.15
        Android Lint Plugin v2.3
        Gradle Plugin v1.24
        Xvnc Plugin v1.23
        Xvfb Plugin v1.1.3


Problem #1
----------
Created on "Android VD" with AVD name as "Nexus_6_API_23" using "Android Studio" and later I could start Emulator from "Shell Command Line", but "Segmentation Fault (core dumped)" when I exit the emulator.

ravi@ravi-dev-box:~$ emulator -list-avds
Nexus_6_API_23
ravi@ravi-dev-box:~$
ravi@ravi-dev-box:~$ emulator -avd Nexus_6_API_23
adb_server_notify: Failed to establish connection to ADB server
console on port 5554, ADB on port 5555
Your emulator is out of date, please update by launching Android Studio:
 - Start Android Studio
 - Select menu "Tools > Android > SDK Manager"
 - Click "SDK Tools" tab
 - Check "Android SDK Tools" checkbox
 - Click "OK"

Segmentation fault (core dumped)
ravi@ravi-dev-box:~$


Problem #2
----------
I tried to start "Android Emulator" about the same above mentioned "Nexus_6_API_23" AVD using a "Jenkins Job" which DOES NOT include any Xvfb and Xvnc related configuration. Build using this "Jenkins Job" fails as explained below (Console Output from the build).

Started by user admin
[EnvInject] - Loading node environment variables.
Building in workspace /home/ravi/Downloads/Android/Spring/gs-gradle-android_3
[android] Using Android SDK: /opt/android-sdk-linux/
$ /opt/android-sdk-linux//platform-tools/adb start-server
* daemon not running. starting it now on port 5835 *
* daemon started successfully *
$ /opt/android-sdk-linux//platform-tools/adb start-server
[android] Starting Android emulator
$ /opt/android-sdk-linux//tools/emulator -engine classic -ports 5772,5773 -report-console tcp:5839,max=60 -avd Nexus_6_API_23 -no-snapshot-load -no-snapshot-save
Error: unable to open display
Error: unable to open display
QXcbConnection: Could not connect to display
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
[android] Emulator did not appear to start; giving up
[android] Stopping Android emulator
$ /opt/android-sdk-linux//platform-tools/adb kill-server
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: NOT_BUILT

Thanks A Lot In Advance,
Ravi

Ravi A

unread,
Jul 18, 2016, 2:05:24 PM7/18/16
to Jenkins Users
Please neglect my Problem #1 as this problem is related to "Android". Let me ask this question to "Android Google Group".
Request you to answer my Problem #2 with a solution.

Thank you,
Ravi

Eric Pyle

unread,
Jul 18, 2016, 2:09:01 PM7/18/16
to jenkins...@googlegroups.com

I don't know anything about running the Android Emulator, but the error seems to be "Unable to open display". You mention that you did not use any Xvfb or Xvnc configuration. Maybe this is something that needs to be set up?

Eric

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e43c465b-0849-4324-93c7-090cd1b6a276%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ravi A

unread,
Jul 19, 2016, 2:18:41 AM7/19/16
to Jenkins Users
Eric,
I am using "Ubuntu 14.04.4 x64 LTS Desktop" host. So I already have working X-windows with my host. So I assumed using Xvfb or Xvnc is NOT required with Jenkins job. Is it mandatory to use Xvfb or Xvnc independent of whether I use a "UBuntu Desktop" host or "Ubuntu Server" host ?? Kindly advise.

Thank you,
Ravi
--
Reply all
Reply to author
Forward
0 new messages