[TIMOB-24689] (Windows) Unable to build for Android on 6.0.4.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-05-16T19:55:35.000+0000 |
Affected Version/s | Release 6.0.4 |
Fix Version/s | Release 6.1.0 |
Components | Android |
Labels | n/a |
Reporter | Samir Mohammed |
Assignee | Gary Mathews |
Created | 2017-05-12T20:58:29.000+0000 |
Updated | 2017-05-17T17:11:55.000+0000 |
Description
When I try to run an android application In 6.0.4.GA from the CLI I get the following error message even when I have the Correct SDK installed.
[ERROR] Unable to find a suitable installed Android SDK that is API >=23 and <=25
The error i get from studio:
[ERROR] : No Android SDK targets found.
[ERROR] : Please download an Android SDK target API level 23 or newer from the Android SDK Manager and try again.
*Test steps*
1. Using the old android SDK manager find Android 6.0 (Api 23) and remove it
2. Re install Android 6.0 (API 23)
3. Create a titanium application
4. Run the application on 6.0.4.GA for android emulator
5. should see an error message relating to Android SDK not being found
6. Run the application on 6.0.3.GA for android emulator
7. Application will run without and issues
*Actual result*
Error is thrown showing no suitable SDK is installed when running from 6.0.4.GA but when I try to run an android build from 6.0.3.GA the build is successful.
*Expected result*
No error should be thrown on both versions of the SDK.
*Log from the CLI is attached below and so are screenshots of my SDK manager*
Attachments
File | Date | Size |
---|---|---|
Build tools issue 1.PNG | 2017-05-12T20:58:23.000+0000 | 59475 |
Build tools issue 2.PNG | 2017-05-12T20:58:23.000+0000 | 60841 |
Log.txt.txt | 2017-05-12T20:55:29.000+0000 | 11763 |
SDK Tools
24.4.1
: https://dl.google.com/android/repository/tools_r24.4.1-windows.zip Platform Tools25.0.5
: https://dl.google.com/android/repository/platform-tools_r25.0.5-windows.zipI'm using the same tooling as you, but I'm unable to produce the error you're seeing after following your steps.
node-titanium-sdk: https://github.com/appcelerator/node-titanium-sdk/pull/4
[~gmathews] The node-titanium-sdk PR looks good. Need to bump the version so that a new version gets published to NPM, then we need a PR against titanium_mobile with the updated node-titanium-sdk. Set the new node-titanium-sdk version in timob's package.json, then
rm -rm node_modules/node-titanium-sdk && npm i node-titanium-sdk --production
. Only a few files should have been updated. Commit and PR![~cbarber] You're too fast, I pushed https://github.com/garymathews/node-titanium-sdk/commit/86a6f81ef7dc4d5da1d5c677e7948b37cbad5274 just after you merged it :D I'll make the PRs to bump the versions in titanium_mobile and node-titanium-sdk (y)
titanium_mobile master: https://github.com/appcelerator/titanium_mobile/pull/9061 6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9062
Verified fix in
6.1.0.v20170516173434
and6.2.0.v20170517024524
was able to create and run an android application without any issues. No longer gettingUnable to find a suitable installed Android SDK that is API >=23 and <=25
which was seen on SDK version6.0.4.GA
. *Environment*