我安装了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.