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

Breakage on Android SDK r22

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In Android SDK r22, aapt was moved from platform-tools/ to build-tools/17.0.0/. This causes Android Emulator plug-in to stop working with the following error:

      [android] Required Android tools not found in PATH; cannot continue

      Putting $ANDROID_HOME/build-tools/17.0.0/ in the path variable doesn't resolve the issue.

      The temporary workaround is to create a soft-link under $ANDROID_HOME/platform-tools/ to $ANDROID_HOME/build-tools/17.0.0/aapt

        Attachments

          Activity

          Hide
          simpligility Manfred Moser added a comment -

          Thanks for the work around..

          Show
          simpligility Manfred Moser added a comment - Thanks for the work around..
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/sdk/Tool.java
          src/main/java/hudson/plugins/android_emulator/util/Utils.java
          http://jenkins-ci.org/commit/android-emulator-plugin/0f997f47b5acc9bae0740e4d8c80e2fdfbb345fc
          Log:
          [FIXED JENKINS-18015] Handle SDK detection with new 'build-tools' component.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: src/main/java/hudson/plugins/android_emulator/sdk/Tool.java src/main/java/hudson/plugins/android_emulator/util/Utils.java http://jenkins-ci.org/commit/android-emulator-plugin/0f997f47b5acc9bae0740e4d8c80e2fdfbb345fc Log: [FIXED JENKINS-18015] Handle SDK detection with new 'build-tools' component.
          Hide
          orrc Christopher Orr added a comment -

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

          Show
          orrc Christopher Orr added a comment - Version 2.10 of the plugin has been released, which includes this fix.
          Hide
          achuinard Tony Chuinard added a comment -

          I'm still getting this issue on the 2.10 version of the plugin:

          Waiting for Jenkins to finish collecting data
          channel stopped
          [target] $ /usr/local/android-sdk/platform-tools/aapt dump badging budgetplannerpro.apk
          ERROR: Failed to parse POMs
          java.io.IOException: Cannot run program "/usr/local/android-sdk/platform-tools/aapt" (in directory "/ebs/jenkins/workspace/Budget/target"): java.io.IOException: error=2, No such file or directory
          at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)

          Show
          achuinard Tony Chuinard added a comment - I'm still getting this issue on the 2.10 version of the plugin: Waiting for Jenkins to finish collecting data channel stopped [target] $ /usr/local/android-sdk/platform-tools/aapt dump badging budgetplannerpro.apk ERROR: Failed to parse POMs java.io.IOException: Cannot run program "/usr/local/android-sdk/platform-tools/aapt" (in directory "/ebs/jenkins/workspace/Budget/target"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)
          Hide
          wildweazel Travis Christian added a comment -

          I am also still having this problem in 2.10:

          12:12:26 $ C:\Android\android-sdk/platform-tools/adb.exe kill-server
          12:12:26 The system cannot find the file specified
          12:12:26 FATAL: Cannot run program "C:\Android\android-sdk/platform-tools/aapt.exe" (in directory "E:\<project workspace>\Target"): CreateProcess error=2, The system cannot find the file specified
          12:12:26 java.io.IOException: Cannot run program "C:\Android\android-sdk/platform-tools/aapt.exe" (in directory "E:\<project workspace>\Target"): CreateProcess error=2, The system cannot find the file specified

          Show
          wildweazel Travis Christian added a comment - I am also still having this problem in 2.10: 12:12:26 $ C:\Android\android-sdk/platform-tools/adb.exe kill-server 12:12:26 The system cannot find the file specified 12:12:26 FATAL: Cannot run program "C:\Android\android-sdk/platform-tools/aapt.exe" (in directory "E:\<project workspace>\Target"): CreateProcess error=2, The system cannot find the file specified 12:12:26 java.io.IOException: Cannot run program "C:\Android\android-sdk/platform-tools/aapt.exe" (in directory "E:\<project workspace>\Target"): CreateProcess error=2, The system cannot find the file specified

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              tigerpenguin Brian Lee
            • Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: