【发布时间】:2017-07-30 11:52:54
【问题描述】:
我已经安装了 NativeScript,并尝试执行tns platform add android,但它不起作用。 ANDROID_HOME 路径是正确的,我已经安装了 SDK(API 22 和最新的)和工具(25.0.2)。当我运行tns doctor 时,它会说:
WARNING: The Android SDK is not installed or is not configured properly.
Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later.
You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=25.0.2'.
You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system.
【问题讨论】:
-
请查看github.com/NativeScript/nativescript-cli/issues/… - 您可以重新下载 android Sdk 并下载早期版本的平台工具来临时解决此问题。
标签: android macos nativescript android-sdk-tools angular2-nativescript