Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23600

SDK repositories and emulator images do not install

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Google has updated its Android SDK Platform-tools to version 20 and since then, whenever I do a first time setup of the Android SDK, the plugin automatically uses the latest version and that seems to break the installation of the android/google support repositories and emulator images (ABI).

      ---------------------------------------

      My emulator settings:

      ---------------------------------------

      Console:

      Downloading and installing Android SDK from http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
      [android] Base SDK installed successfully
      [android] Going to install required Android SDK components...
      [android] Installing the 'platform-tool' SDK component(s)...
      $ /var/lib/jenkins/tools/android-sdk/tools/android update sdk -u -a -t platform-tool
      Refresh Sources:
      Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
      Validate XML
      Parse XML
      Fetched Add-ons List successfully
      Refresh Sources
      Fetching URL: https://dl-ssl.google.com/android/repository/repository-9.xml
      Validate XML: https://dl-ssl.google.com/android/repository/repository-8.xml
      Parse XML: https://dl-ssl.google.com/android/repository/repository-8.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml
      Parse XML: https://dl-ssl.google.com/android/repository/addon-6.xml
      Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
      Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml
      Parse XML: https://dl-ssl.google.com/glass/gdk/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Parse XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Parse XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Refresh Sources:
      Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      -------------------------------
      License id: android-sdk-license-5be876d5
      Used by:

      • Android SDK Platform-tools, revision 20
        -------------------------------

      Installing Archives:
      Preparing to install archives
      Downloading Android SDK Platform-tools, revision 20
      Installing Android SDK Platform-tools, revision 20
      Stopping ADB server failed (code -1).
      Unzipping Android SDK Platform-tools, revision 20 (5%)
      Unzipping Android SDK Platform-tools, revision 20 (38%)
      Unzipping Android SDK Platform-tools, revision 20 (44%)
      Unzipping Android SDK Platform-tools, revision 20 (62%)
      Unzipping Android SDK Platform-tools, revision 20 (71%)
      Unzipping Android SDK Platform-tools, revision 20 (94%)
      Unzipping Android SDK Platform-tools, revision 20 (97%)
      Unzipping Android SDK Platform-tools, revision 20 (98%)
      Unzipping Android SDK Platform-tools, revision 20 (99%)
      Installed Android SDK Platform-tools, revision 20
      Stopping ADB server succeeded.
      Starting ADB server succeeded.
      Done. 1 package installed.

      Then later:

      $ /var/lib/jenkins/tools/android-sdk/tools/android update sdk -u -a -t tool,build-tools-19.1.0,extra-android-m2repository,extra-google-m2repository
      Refresh Sources:
      Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
      Validate XML
      Parse XML
      Fetched Add-ons List successfully
      Refresh Sources
      Fetching URL: https://dl-ssl.google.com/android/repository/repository-9.xml
      Validate XML: https://dl-ssl.google.com/android/repository/repository-8.xml
      Parse XML: https://dl-ssl.google.com/android/repository/repository-8.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml
      Parse XML: https://dl-ssl.google.com/android/repository/addon-6.xml
      Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
      Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml
      Parse XML: https://dl-ssl.google.com/glass/gdk/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Parse XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Parse XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Refresh Sources:
      Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Error: Ignoring unknown package filter 'extra-android-m2repository'
      Error: Ignoring unknown package filter 'extra-google-m2repository'
      -------------------------------
      License id: android-sdk-license-5be876d5
      Used by:

      • Android SDK Tools, revision 23
      • Android SDK Build-tools, revision 19.1
        -------------------------------

      And then later:

      $ /var/lib/jenkins/tools/android-sdk/tools/android update sdk -u -a -t android-19,sysimg-19
      Refresh Sources:
      Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
      Validate XML
      Parse XML
      Fetched Add-ons List successfully
      Refresh Sources
      Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
      Validate XML: https://dl-ssl.google.com/android/repository/repository-10.xml
      Parse XML: https://dl-ssl.google.com/android/repository/repository-10.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
      Parse XML: https://dl-ssl.google.com/android/repository/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml
      Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml
      Parse XML: https://dl-ssl.google.com/android/repository/addon-6.xml
      Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
      Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml
      Parse XML: https://dl-ssl.google.com/glass/gdk/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Parse XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Parse XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
      Error: Ignoring unknown package filter 'sysimg-19'
      -------------------------------
      License id: android-sdk-license-5be876d5
      Used by:

      • SDK Platform Android 4.4.2, API 19, revision 3
        -------------------------------

      Which causes:

      [android] Using Android SDK: /var/lib/jenkins/tools/android-sdk
      [android] Creating Android AVD: /var/lib/jenkins/.android/avd/hudson_en-US_160_HVGA_android-19_armeabi-v7a.avd
      [android] /var/lib/jenkins/tools/android-sdk/tools/android create avd -f -a -s HVGA -n hudson_en-US_160_HVGA_android-19_armeabi-v7a -t android-19 --abi armeabi-v7a
      Error: Invalid --abi armeabi-v7a for the selected target.

      [android] Could not create Android emulator: Failed to run AVD creation command
      Finished: NOT_BUILT

        Attachments

          Activity

          Hide
          fpoyer François Poyer added a comment - - edited

          I'm having the same problem: using android emulator plugin 2.11.1 with Jenkins 1.574 on Ubuntu 14.04 LTS, configured my build to run an AVD with Android OS version as "android-15" (minus the quotes) for compatibility tests, and I've got the following in console:

          $ /home/jenkins/tools/android-sdk/tools/android list target
          [android] The configured Android platform needs to be installed: android-15
          $ /home/jenkins/tools/android-sdk/tools/android list target
          $ /home/jenkins/tools/android-sdk/tools/android list target
          [android] Installing the 'android-15,sysimg-15' SDK component(s)...
          $ /home/jenkins/tools/android-sdk/tools/android update sdk -u -a -t android-15,sysimg-15
          Refresh Sources:
          Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
          Validate XML
          Parse XML
          Fetched Add-ons List successfully
          Refresh Sources
          Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
          Validate XML: https://dl-ssl.google.com/android/repository/repository-10.xml
          Parse XML: https://dl-ssl.google.com/android/repository/repository-10.xml
          Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
          Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
          Parse XML: https://dl-ssl.google.com/android/repository/addon.xml
          Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml
          Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml
          Parse XML: https://dl-ssl.google.com/android/repository/addon-6.xml
          Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
          Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml
          Parse XML: https://dl-ssl.google.com/glass/gdk/addon.xml
          Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
          Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
          Parse XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
          Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
          Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
          Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
          Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
          Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
          Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
          Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
          Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
          Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
          Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
          Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
          Parse XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
          Error: Ignoring unknown package filter 'sysimg-15'

          [... skipping dowload/unpack/licensing stuff...]

          [android] Using Android SDK: /home/jenkins/tools/android-sdk
          [android] Creating Android AVD: /home/fpoyer/.android/avd/hudson_en-US_160_WVGA_android-15_armeabi-v7a.avd
          [android] /home/jenkins/tools/android-sdk/tools/android create avd -f -a -s WVGA800 -n hudson_en-US_160_WVGA_android-15_armeabi-v7a -t android-15 --abi armeabi-v7a
          Error: Invalid --abi armeabi-v7a for the selected target.

          [android] Could not create Android emulator: Failed to run AVD creation command
          Finished: NOT_BUILT

          Launching the SDK Manager, I can indeed see that no system image was dowloaded/installed...

          Show
          fpoyer François Poyer added a comment - - edited I'm having the same problem: using android emulator plugin 2.11.1 with Jenkins 1.574 on Ubuntu 14.04 LTS, configured my build to run an AVD with Android OS version as "android-15" (minus the quotes) for compatibility tests, and I've got the following in console: $ /home/jenkins/tools/android-sdk/tools/android list target [android] The configured Android platform needs to be installed: android-15 $ /home/jenkins/tools/android-sdk/tools/android list target $ /home/jenkins/tools/android-sdk/tools/android list target [android] Installing the 'android-15,sysimg-15' SDK component(s)... $ /home/jenkins/tools/android-sdk/tools/android update sdk -u -a -t android-15,sysimg-15 Refresh Sources: Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Validate XML Parse XML Fetched Add-ons List successfully Refresh Sources Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml Validate XML: https://dl-ssl.google.com/android/repository/repository-10.xml Parse XML: https://dl-ssl.google.com/android/repository/repository-10.xml Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml Validate XML: https://dl-ssl.google.com/android/repository/addon.xml Parse XML: https://dl-ssl.google.com/android/repository/addon.xml Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml Parse XML: https://dl-ssl.google.com/android/repository/addon-6.xml Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml Parse XML: https://dl-ssl.google.com/glass/gdk/addon.xml Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml Parse XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml Parse XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml Error: Ignoring unknown package filter 'sysimg-15' [... skipping dowload/unpack/licensing stuff...] [android] Using Android SDK: /home/jenkins/tools/android-sdk [android] Creating Android AVD: /home/fpoyer/.android/avd/hudson_en-US_160_WVGA_android-15_armeabi-v7a.avd [android] /home/jenkins/tools/android-sdk/tools/android create avd -f -a -s WVGA800 -n hudson_en-US_160_WVGA_android-15_armeabi-v7a -t android-15 --abi armeabi-v7a Error: Invalid --abi armeabi-v7a for the selected target. [android] Could not create Android emulator: Failed to run AVD creation command Finished: NOT_BUILT Launching the SDK Manager, I can indeed see that no system image was dowloaded/installed...
          Hide
          andrew_shikhov Andrew Shikhov added a comment -

          I found out that android update sdk broken, its filter part with keys sys-img/system-image.

          Workaround: if specify all the params of system image then it does work!

          For example:
          ./android update sdk -u -a -t sys-img-armeabi-v7a-android-19
          ./android update sdk -u -a -t sys-img-x86-android-19

          Show
          andrew_shikhov Andrew Shikhov added a comment - I found out that android update sdk broken, its filter part with keys sys-img/system-image. Workaround: if specify all the params of system image then it does work! For example: ./android update sdk -u -a -t sys-img-armeabi-v7a-android-19 ./android update sdk -u -a -t sys-img-x86-android-19
          Hide
          clemp6r clemp6r added a comment -

          Any news? For me it's a blocker issue that prevent using the android emulator plugin.

          Show
          clemp6r clemp6r added a comment - Any news? For me it's a blocker issue that prevent using the android emulator plugin.
          Hide
          sebastianreloaded Sebastian Opel added a comment -

          The latest version still has the same problem. I had to download the images via commandline.

          Show
          sebastianreloaded Sebastian Opel added a comment - The latest version still has the same problem. I had to download the images via commandline.
          Hide
          orrc Christopher Orr added a comment -

          This should be fixed, and there will be a release soon.

          See the current latest comment on JENKINS-23688 if you want to try out a recent build of the plugin.

          Show
          orrc Christopher Orr added a comment - This should be fixed, and there will be a release soon. See the current latest comment on JENKINS-23688 if you want to try out a recent build of the plugin.
          Hide
          orrc Christopher Orr added a comment -

          (Most) system images should now be automatically installed correctly.

          Show
          orrc Christopher Orr added a comment - (Most) system images should now be automatically installed correctly.
          Hide
          orrc Christopher Orr added a comment -

          Version 2.13 of the plugin has been released, which includes this fix.

          Show
          orrc Christopher Orr added a comment - Version 2.13 of the plugin has been released, which includes this fix.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              tilenf Tilen Faganel
            • Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: