1

I just start to learn nativescript and i made a nativescript project, when i want to run it via tns run android --emulator it says :

You need to have the Android SDK Build-tools 
installed on your system. You have to install version 23

tns doctors command :

You need to have the Android SDK Build-tools installed on your system. You have to install version 23.
Run android from your command-line to install required Android Build Tools.

You need to have Android SDK 22 or later and the latest Local Maven repository for Support Libraries installed on your system.
Run $ android  to manage the Local Maven repository for Support Libraries.

my android sdk image enter image description here

I also follow instruction #2 answer in this topic : Cannot find a compatible Android SDK for compilation when running `tns platform add android`

my android_home in .bashrc :

#AndroidDev PATH
export ANDROID_HOME=~/android-sdk-linux/
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Community
  • 1
  • 1
moein rahimi
  • 774
  • 10
  • 20

2 Answers2

2

I ran this and it was resolved.

android update sdk --filter tools,platform-tools,android-23,build-tools-23.0.2,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui
Garth
  • 1,406
  • 2
  • 9
  • 9
  • how do you run that on windows ? i tried without successs – Xsmael Mar 19 '17 at 10:51
  • The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager – stackdave Jul 03 '17 at 06:31
0

I can't really test it on Linux enviroment but I think this topic is related to your issues - Android build failing with build.xml:479: SDK does not have any Build Tools installed

In two words (as suggested in the topic) you can try

android update sdk -u

and then assure that you have build-tools installed in Android SDK manager. The latest linux SDK tools version is 24.4.1

Community
  • 1
  • 1
Nick Iliev
  • 9,610
  • 3
  • 35
  • 89
  • The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager – stackdave Jul 02 '17 at 23:34