[TIMOB-24555] Android: Latest Android Tools breaks development with Titanium
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-04-10T23:26:25.000+0000 |
Affected Version/s | Release 6.0.3 |
Fix Version/s | Release 6.0.4 |
Components | Android |
Labels | android, build-tools |
Reporter | Hans Knöchel |
Assignee | Chris Barber |
Created | 2017-04-04T05:12:01.000+0000 |
Updated | 2017-04-21T17:54:49.000+0000 |
Description
The latest Android tooling seems to break the usage with Titanium, because the
<android-sdk>/tools/android
command is deprecated in favor of the one embedded in Android Studio.
This issue was raised by the community, here are some more details:
{quote}
I have just updated my Android Studio installation with the latest android tools and now Ti doesn’t recognize the Android sdk anymore on ti info, the platforms list is always empty.
This is likely because /tools/android is deprecated and Google now uses the sdkmanager binary to handle sdk versions. It is really annoying having to maintain 2 separate android sdks on the same machine as it consumes an awful lot of space.
{quote}
Further references:
* https://code.google.com/p/android/issues/detail?id=235455
* http://tools.android.com/recent/androidsdktoolsrevision2530feb2017
* https://developer.android.com/studio/tools/help/android.html
Attachments
File | Date | Size |
---|---|---|
sdkmanager.jpg | 2017-04-04T12:09:10.000+0000 | 72614 |
Currently,
25.2.3
is the latest command-line tools available to download from https://developer.android.com/studio/index.html However, https://developer.android.com/studio/releases/sdk-tools.html shows 26.0.1 is available, which is only available as a preview. !sdkmanager.jpg|thumbnail! *SDK Manager* https://developer.android.com/studio/command-line/sdkmanager.htmlThey recommend the
sdkmanager
andavdmanager
for 25.2.3 and later. Some usage details: *SDK-Manager options*:*AVD-Manager options*:
*List of Android SDK's*:
/opt/android-sdk/tools/bin/sdkmanager --list
:*List of Android devices*:
/opt/android-sdk/tools/bin/avdmanager list
:*Create new Android Emulator*:
Reminds me of the iOS simulator list. More infos: https://developer.android.com/studio/command-line/sdkmanager.html
<android-sdk>/tools/android.*
is removed inRevision 25.3.0 (March 2017)
but this revision and later is currently not available to download. I believe Google may have pulled these revisions due to this breaking change. UPDATE: Android Studio 2.3 ships with SDK Tools25.3.1
Titanium SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8929 Titanium SDK 6_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/8935 Titanium SDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8931 To test, 1. Run
ti info -t android
andti info -t android -o json
and verify output 2. Runti build -p android
3. Runti build -p android --device-id foo
4. Runti build -p android --device-id <valid id from ti info>
5. Runti build -p android --build-only
6. Runti build -p android -T device --build-only
7. Runti build -p android -T dist-playstore
Verified & merged the fix in the above mentioned PR's, waiting for the build from CI to close the ticket.
Verified the fix in 6.0.4.v20170420100617. Closing.