Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24689] (Windows) Unable to build for Android on 6.0.4.GA

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-05-16T19:55:35.000+0000
Affected Version/sRelease 6.0.4
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsn/a
ReporterSamir Mohammed
AssigneeGary Mathews
Created2017-05-12T20:58:29.000+0000
Updated2017-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

FileDateSize
Build tools issue 1.PNG2017-05-12T20:58:23.000+000059475
Build tools issue 2.PNG2017-05-12T20:58:23.000+000060841
Log.txt.txt2017-05-12T20:55:29.000+000011763

Comments

  1. Gary Mathews 2017-05-15

    SDK Tools 24.4.1: https://dl.google.com/android/repository/tools_r24.4.1-windows.zip Platform Tools 25.0.5: https://dl.google.com/android/repository/platform-tools_r25.0.5-windows.zip
  2. Gary Mathews 2017-05-15

    I'm using the same tooling as you, but I'm unable to produce the error you're seeing after following your steps.
  3. Gary Mathews 2017-05-15

    node-titanium-sdk: https://github.com/appcelerator/node-titanium-sdk/pull/4
  4. Chris Barber 2017-05-15

    [~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!
  5. Gary Mathews 2017-05-15

    [~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)
  6. Gary Mathews 2017-05-16

    titanium_mobile master: https://github.com/appcelerator/titanium_mobile/pull/9061 6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9062
  7. Samir Mohammed 2017-05-17

    Verified fix in 6.1.0.v20170516173434 and 6.2.0.v20170517024524 was able to create and run an android application without any issues. No longer getting Unable to find a suitable installed Android SDK that is API >=23 and <=25 which was seen on SDK version 6.0.4.GA. *Environment*
       APPC Studio: 4.8.1.201612050850
       Hyperloop 2.1.0
       APPC CLI: 6.2.1
       Operating System:
       Name = Microsoft Windows 10 Pro
       Version = 10.0.14393
       Architecture = 64bit
       CPUs = 4
       Memory = 17034395648
       Node.js:
       Node.js Version = 6.10.1
       

JSON Source