Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11781] CLI: titanium build for android cannot detect the Android SDK targets even when they are available

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-11-21T22:10:26.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 JS
ComponentsTooling
Labelsqe-cli
ReporterNatalie Huynh
AssigneeChris Barber
Created2012-11-15T17:29:36.000+0000
Updated2013-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

Comments

  1. Chris Barber 2012-11-21

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3462 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3463
  2. Natalie Huynh 2012-12-04

    Tested with CLI 3.0.19
  3. Mukul Sharma 2013-01-18

    Still seeing this issue on CLI 3.0.22. Not sure how to re-open this case. Can someone do that for me?
  4. Jon Ege Ronnenberg 2013-02-20

    Same issue with ti -v 3.0.24 Is there a work-around?
  5. Jon Ege Ronnenberg 2013-02-20

    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.
  6. Mukul Sharma 2013-02-20

    Jon, you can run the Titanium Setup by running the command - ti setup Going through the setup successfully will fix this problem.
  7. Jon Ege Ronnenberg 2013-02-20

  8. Jon Ege Ronnenberg 2013-02-21

    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
    javascript
       var s = "/Volumes/Macintosh HD 2 1/dotnetCarpenter/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/android/builder.py";
       s = s.replace(/\s/g, "\\ ");
       console.log(s)
       

JSON Source