我剛開始學習nativescript和我犯了一個nativescript項目, 時,我想通過tns run android --emulator
運行它,它說:nativescript運行失敗了 - 構建工具沒有安裝
You need to have the Android SDK Build-tools
installed on your system. You have to install version 23
TNS醫生命令:
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.
我也跟着指示#2答案這個話題:Cannot find a compatible Android SDK for compilation when running `tns platform add android`
我android_home中的.bashrc:
#AndroidDev PATH
export ANDROID_HOME=~/android-sdk-linux/
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
「android」命令已被棄用。 對於手動SDK,AVD和項目管理,請使用Android Studio。 對於命令行工具,請使用tools/bin/sdkmanager和tools/bin/avdmanager – stackdave