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

Update of sdk and build-tools for android-21 fails

XMLWordPrintable

      Hi, I am currently building on a linux slave that has the android-19 version installed. In the plugin I have activated the option "Automatically install Android components when required". In the project properties I set 'android-21', therefore the android-21 should be downloaded.

      But the download of android-21 fails (look at the log output):

      [android] Searching for Android projects...
      [android] Project file 'project.properties' requires platform 'android-21'
      [android] Ensuring platform(s) are installed: [android-21]
      $ /data/jenkins/tools/android-sdk/tools/android list target
      [android] The configured Android platform needs to be installed: android-21
      [android] Installing the 'android-21' SDK component(s)...
      $ /data/jenkins/tools/android-sdk/tools/android update sdk -u -a -t android-21
      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/google_apis/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/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
      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
      Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
      Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/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
      Error: Ignoring unknown package filter 'android-21'
      Warning: The package filter removed all packages. There is nothing to install.

      Therefore the build fails. The workaround for me is at the moment to manually copy the new sdk to my sdk location (and also the build-tools). It would be nice if this functionality could be fixed.

      Thanks, best
      Carlo

            orrc Christopher Orr
            cbongiovanni Carlo Bongiovanni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: