Trouble installing Android SDK for Appcelerator studio on windows 7

喜夏-厌秋 提交于 2019-12-01 09:35:28

To identify the problem:
1. Verify android SDK path $appc ti info -t android

Android SDK
  Android Executable          = /Users/kk/Library/android-sdk-macosx/tools/android
  ADB Executable              = /Users/kk/Library/android-sdk-macosx/platform-tools/adb
  SDK Path                    = /Users/kk/Library/android-sdk-macosx

Is this what you wanted to refer ?

  1. Verify API Level 23(Android SDK 6.0) is installed or not from the above command output.

android-23 Name = Android 6.0 API Level = 23 Revision = 1 Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound360x360, AndroidWearRound400x400, AndroidWearRound480x480, AndroidWearRoundChin320x290, AndroidWearRoundChin360x325, AndroidWearRoundChin360x330, AndroidWearSquare, AndroidWearSquare320x320 ABIs = armeabi-v7a, x86, x86_64 Path = /Users/kk/Library/android-sdk-macosx/platforms/android-23

  1. Verify Android SDK path in the studio, is it referring to the same path ?

That you can check from, Appcelerator Studio ->Preferences->Platforms ->Android
Check "Android SDK Home" path.

And also see installed android SDK's from, by clicking on "Install SDKs...", this will open up the dialog. Is "Android 6.0" selected here?

I was not able to select or install Android SDK's via Appcelerator Studio -> Preferences -> Platforms -> Android -> Install SDKs, the versions are greyed out, see below:

I updated my Android SDKs using C:\android-sdk-win\tools\android.bat but this is not enough. I opened my Tiapp.xml file and clicked install below "Deployment targets":

I noticed that API level 23 (Android SDK 6.0) was not checked, so I selected it and clicked configure to install the SDK (or update it):

This solved the problem for me!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!