How to set up Android SDK for Titanium on Mac OS Lion?

I have successfully installed Titanium Studio. SDK Version: 1.7.5 enter image description here . Now I downloaded the Android SDK from http://developer.android.com/sdk/index.html

Now I'm trying to configure the Android SDK, but when I provide the path, I get the error message " Cannot find the Android SDK at the specified path ." I also added a screenshot.

+4
source share
5 answers

Step 1) Download the SDK for Android.

Step 2) unzip android-sdk (whatever downloaded)

Step 3) In OS X, by default there is no /opt directory. you obviously have to create it. Run the following command.

 sudo mkdir /opt 

Step 4) Run the following command to enter the /opt directory.

 cd /opt 

Step 5) Run the following command to create a link to android-sdk. Suppose you have android-sdk located in the Applications section

 sudo ln -s /Applications/android-sdk-macosx/ android-sdk 

Step 6) enter into the directory android-sdk / tools

 cd /opt/android-sdk/tools/ 

Step 7) or directly enter the following command into the terminal.

 /Applications/android-sdk-macosx/tools/android 

Step 8) select the necessary packages and download them. Here is an example screen.

enter image description here

Open this URL - http://developer.appcelerator.com/question/32161/problem-with-the-android-sdk-installation-in-titanium . They posted a similar QA there.

+8
source

and if you do not want to fall into all these steps, just download eclipse and install the ADT plugin for eclipse and download all the packages using the ADT plugin.

You can get more information here,

http://developer.android.com/sdk/installing.html

I downloaded the Android SDK using this method on windows and mac.

+1
source

After googling, I found out all the details of installing the Android SDK in Titanium. Please refer to this image. You can find this image at http://developer.appcelerator.com/get_started enter image description here

+1
source

Select the directory where the Android SDK is located using the browse button. Enter the ending slash ('/') after the path (Android SDK directory). Now you can select your SDK in the popup next to the default Android SDK.

+1
source
  • Find the Android SDK directory, for example. /usr/local/android-sdk-macos
  • Create an empty directory named android-7 in the platforms directory:

     mkdir /usr/local/android-sdk-macosx/platforms/android-7 
  • Now try again and select the Android SDK directory in Eclipse.

0
source

Source: https://habr.com/ru/post/1385504/


All Articles