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

SDK repositories and emulator images do not install

XMLWordPrintable

      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

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

              Created:
              Updated:
              Resolved: