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

Latest Android SDK command line tools package is not supported

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Android Emulator Plugin 3.0
      Android SDK Command Line Tools (commandlinetools-linux-6200805_latest.zip)
      Linux
    • Similar Issues:
    • Released As:
      3.1

      Description

      There's an issue with Android Emulator Plugin 3.0 not working with current "Command line tools only" sdk package ( https://developer.android.com/studio#downloads). I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

      The issue seems to be located in AndroidSdk.java:161

      Plugin tries to use old {$ANDROID_SDK}/tools/emulator path to run the emulator instead of {$ANDROID_SDK}/emulator/emulator. 

       

      [android] Erasing existing emulator data...
      $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
      FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
      java.io.IOException: error=2, No such file or directory

      The issue is about how the plugin checks tools versioning, it looks for a property named Pkg.Revision in file {$ANDROID_SDK}/tools/source.properties.

      For "Command line tools" it looks like this:

      Pkg.Revision=1.0
      Pkg.Path=cmdline-tools;1.0
      Pkg.Desc=Android SDK Command-line Tools

      For earlier SDKs it looks like e.g this: 

      Pkg.UserSrc=false
      Pkg.Revision=26.1.1
      Platform.MinPlatformToolsRev=20
      Pkg.Dependencies=emulator
      Pkg.Path=tools
      Pkg.Desc=Android SDK Tools

      The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

       

        Attachments

          Activity

          ddudek Daniel Dudek created issue -
          ddudek Daniel Dudek made changes -
          Field Original Value New Value
          Description There's an issue with Android Emulator Plugin 3.0 not working with current "Command line tools only" sdk package. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of {{ \{$ANDROID_SDK}/emulator/emulator.}}
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3 ([AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]), which for this command line tools package is obviously not.

           
          There's an issue with Android Emulator Plugin 3.0 not working with current "Command line tools only" sdk package. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator.

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          ddudek Daniel Dudek made changes -
          Description There's an issue with Android Emulator Plugin 3.0 not working with current "Command line tools only" sdk package. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator.

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          There's an issue with Android Emulator Plugin 3.0 not working with current "Command line tools only" sdk package. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          ddudek Daniel Dudek made changes -
          Description There's an issue with Android Emulator Plugin 3.0 not working with current "Command line tools only" sdk package. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          There's an issue with Android Emulator Plugin 3.0 not working with current ["Command line tools only" sdk package|[https://developer.android.com/studio#downloads]]. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          ddudek Daniel Dudek made changes -
          Description There's an issue with Android Emulator Plugin 3.0 not working with current ["Command line tools only" sdk package|[https://developer.android.com/studio#downloads]]. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          There's an issue with Android Emulator Plugin 3.0 not working with current [["Command line tools only" sdk package||#downloads]] [https://developer.android.com/studio#downloads] []|#downloads]]. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          ddudek Daniel Dudek made changes -
          Description There's an issue with Android Emulator Plugin 3.0 not working with current [["Command line tools only" sdk package||#downloads]] [https://developer.android.com/studio#downloads] []|#downloads]]. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          There's an issue with Android Emulator Plugin 3.0 not working with current ["Command line tools only" sdk package| [https://developer.android.com/studio#downloads]]. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          ddudek Daniel Dudek made changes -
          Description There's an issue with Android Emulator Plugin 3.0 not working with current ["Command line tools only" sdk package| [https://developer.android.com/studio#downloads]]. I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          There's an issue with Android Emulator Plugin 3.0 not working with current ["Command line tools only" sdk package (|#downloads]] [https://developer.android.com/studio#downloads]). I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          ddudek Daniel Dudek made changes -
          Description There's an issue with Android Emulator Plugin 3.0 not working with current ["Command line tools only" sdk package (|#downloads]] [https://developer.android.com/studio#downloads]). I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          There's an issue with Android Emulator Plugin 3.0 not working with current ["Command line tools only" sdk package (|#downloads] [https://developer.android.com/studio#downloads]). I used it on my build server, which obviously is something to choose for a build server (in comparison to full Android Studio package)

          The issue seems to be located in [AndroidSdk.java:161|https://github.com/jenkinsci/android-emulator-plugin/blob/b9dba3d89d7729a835aeebbf3449b57dd0072c67/src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java#L161]

          Plugin tries to use old {{{$ANDROID_SDK}/tools/emulator}} path to run the emulator instead of \{$ANDROID_SDK}/emulator/emulator. 

           
          {code:java}
          [android] Erasing existing emulator data...
          $ /var/lib/android/tools/emulator -ports 5724,5725 -report-console tcp:5825,max=60 -avd pixel-2-api28 -wipe-data -no-window
          FATAL: Cannot run program "/var/lib/android/tools/emulator": error=2, No such file or directory
          java.io.IOException: error=2, No such file or directory{code}
          The issue is about how the plugin checks tools versioning, it looks for a property named {{Pkg.Revision}} in file {{{$ANDROID_SDK}/tools/source.properties}}.

          For "Command line tools" it looks like this:
          {code:java}
          Pkg.Revision=1.0
          Pkg.Path=cmdline-tools;1.0
          Pkg.Desc=Android SDK Command-line Tools{code}
          For earlier SDKs it looks like e.g this: 
          {code:java}
          Pkg.UserSrc=false
          Pkg.Revision=26.1.1
          Platform.MinPlatformToolsRev=20
          Pkg.Dependencies=emulator
          Pkg.Path=tools
          Pkg.Desc=Android SDK Tools{code}
          The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

           
          nfalco Nikolas Falco made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          nfalco Nikolas Falco made changes -
          Assignee Christopher Orr [ orrc ] Nikolas Falco [ nfalco ]
          nfalco Nikolas Falco made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          nfalco Nikolas Falco made changes -
          Summary Android Emulator Plugin 3.0 doesn't work with new Android SDK command line tools package Latest Android SDK command line tools package is not supported
          nfalco Nikolas Falco made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Fixed but Unreleased [ 10203 ]
          nfalco Nikolas Falco made changes -
          Released As 3.1
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

            People

            Assignee:
            nfalco Nikolas Falco
            Reporter:
            ddudek Daniel Dudek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: