[TIMOB-11781] CLI: titanium build for android cannot detect the Android SDK targets even when they are available
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-11-21T22:10:26.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 JS |
Components | Tooling |
Labels | qe-cli |
Reporter | Natalie Huynh |
Assignee | Chris Barber |
Created | 2012-11-15T17:29:36.000+0000 |
Updated | 2013-02-21T00:02:48.000+0000 |
Description
Steps to Reproduce:
1. Create an application
2. Run "titanium build"
3. type "android"
Actual:
[ERROR] Unable to detect Android SDK targets.
Please download SDK targets via Android SDK Manager and try again. (version 2.2 or newer)
Expected:
To build the android application
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3462 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3463
Tested with CLI 3.0.19
Still seeing this issue on CLI 3.0.22. Not sure how to re-open this case. Can someone do that for me?
Same issue with ti -v 3.0.24 Is there a work-around?
I should mention that my path is: android.sdkPath = "/Volumes/Macintosh HD 2 1/dotnetCarpenter/src/android-sdk-macosx/" Do you think this could be fixed in time for TiConf EU? - it's on Saturday the 23th.
Jon, you can run the Titanium Setup by running the command - ti setup Going through the setup successfully will fix this problem.
I just symlinked (`
ln -s
) my android-sdk-macosx/ folder to /Applications as suggested by your [wiki](https://wiki.appcelerator.org/display/guides/Configuring+Environment+Variables#ConfiguringEnvironmentVariables-OSX]) and now
ti build
`doesn't complain about missing android SDK. You should probably do something like