[AC-2652] CLI 3.0: Titanium build for android cannot detect the Android SDK targets even when they are available
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-28T19:23:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Mukul Sharma |
Assignee | Varun Joshi |
Created | 2013-01-18T12:12:31.000+0000 |
Updated | 2016-03-08T07:41:45.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
Hi Mukul, Can you please provide the error log and the error that you are getting (probably a screenshot if possible)? Also, please post the exact commands you are typing in the terminal. Thanks, Varun
Hi Varun, This issue has been resolved. I should've commented earlier and closed it but apologies for that. The requirement here is that ANDROID_SDK and ANDROID_NDK environment variables must be set before Titanium Android build will work. I believe because of legacy support, python scripts still rely on the ANDROID_SDK and ANDROID_NDK values. If you can improve the documentation, that would be great. Thanks, Mukul
Hi Mukul, I am glad it worked for you. Just a quick tip, if you run the command "titanium setup" command before running any other commands, it would take care of the general pre-configuration you need to have to begin using CLI. Thanks, Varun
You are absolutely right Varun. Just tried it out. 'ti setup' works like a charm. Should've done that in the first place. Thank you very much!! Mukul