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
On 7/18/2016 2:05 PM, Ravi A wrote:
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
On Monday, July 18, 2016 at 11:53:06 AM UTC+5:30, Ravi A wrote:
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
--
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-users+unsubscr...@googlegroups.com
<mailto:jenkinsci-users+unsubscr...@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
<https://groups.google.com/d/msgid/jenkinsci-users/e43c465b-0849-4324-93c7-090cd1b6a276%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
*Eric Pyle
*
Release Engineer
Lebanon
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@cd-adapco.com <mailto:eric.p...@cd-adapco.com>
http://www.cd-adapco.com <http://www.cd-adapco.com>
--
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/8f39e025-9d10-1c0e-f3dc-e6632468da26%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.