[JIRA] (JENKINS-61782) Android Emulator Plugin 3.0 doesn't work with new Android SDK command line tools package

12 views
Skip to first unread message

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:16:03 AM4/2/20
to jenkinsc...@googlegroups.com
Daniel Dudek created an issue
 
Jenkins / Bug JENKINS-61782
Android Emulator Plugin 3.0 doesn't work with new Android SDK command line tools package
Issue Type: Bug Bug
Assignee: Christopher Orr
Components: android-emulator-plugin
Created: 2020-04-02 12:15
Environment: Android Emulator Plugin 3.0
Android SDK Command Line Tools (commandlinetools-linux-6200805_latest.zip)
Linux
Priority: Major Major
Reporter: Daniel Dudek

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.}}

[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 (AndroidSdk.java:161), which for this command line tools package is obviously not.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:17:02 AM4/2/20
to jenkinsc...@googlegroups.com
Daniel Dudek updated an issue
Change By: Daniel Dudek
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. }}

[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.

 

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:17:03 AM4/2/20
to jenkinsc...@googlegroups.com
The plugin checks if version is higher than 25.3, which for this command line tools package is obviously not.

 

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:20:06 AM4/2/20
to jenkinsc...@googlegroups.com
Daniel Dudek updated an issue
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)

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:21:02 AM4/2/20
to jenkinsc...@googlegroups.com
Daniel Dudek updated an issue
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)

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:22:02 AM4/2/20
to jenkinsc...@googlegroups.com
Daniel Dudek updated an issue
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)

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:22:02 AM4/2/20
to jenkinsc...@googlegroups.com
Daniel Dudek updated an issue
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)

kontakt@ddudek.pl (JIRA)

unread,
Apr 2, 2020, 8:22:03 AM4/2/20
to jenkinsc...@googlegroups.com
Daniel Dudek updated an issue
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)
Reply all
Reply to author
Forward
0 new messages