I came across below mentioned issue when trying to launch android emulator via Jenkins. I tried to find some solutions in Google and could not get a proper one yet.
      Just thought of forwarding this to you to know your input on this.

      Scenario:
      I wanted to launch Android emulator while running the build in Jenkins so the monkeyTalk scripts can be run once the build is completed and emulator is started. For doing this I added Android Emulator plugin to Jenkins so I can launch the Android emulator as soon as the build id completed.

      Issue:
      I get below mentioned error message (#2 in the screenshot) when running the build in Jenkins. Just to check whether the same error occurs when running the highlighted commend (#1 in screenshot) in command prompt, I pasted the same command into the command prompt and executed. Then the android emulator started without any issues.

      ISSUE LOG:

      Started by user anonymous
      Building in workspace C:\Users\tharindraj\.jenkins\workspace\test
      $ C:\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk/tools/android.bat list target
      [android] Using Android SDK: C:\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk
      $ C:\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk/platform-tools/adb.exe start-server
      $ C:\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk/tools/emulator.exe -snapshot-list -no-window -avd 99x
      [android] Starting Android emulator and creating initial snapshot
      [android] Erasing existing emulator data...
      $ C:\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk/tools/emulator.exe -no-boot-anim -ports 51300,51301 -avd 99x -no-snapshot-load -no-snapshot-save -wipe-data
      could not get wglGetExtensionsStringARB
      could not get wglGetExtensionsStringARB
      could not get wglGetExtensionsStringARB
      could not get wglGetExtensionsStringARB
      could not get wglGetExtensionsStringARB
      could not get wglGetExtensionsStringARB
      could not get wglGetExtensionsStringARB
      could not get wglGetExtensionsStringARB
      Failed to create Context 0x3005
      emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.

      • daemon not running. starting it now on port 51302 *
      • daemon started successfully *

            orrc Christopher Orr
            tharindraj tharindraj jayamaha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: