我遵循了 Mac 的整个入门教程(https://docs.nativescript.org/tutorial/chapter-1)。
现在我尝试让示例应用程序运行。IOS 工作正常!但是 Android 不能工作:不能在 USB 设备上,也不能在 Genymotion 上。
这里输入后的错误:“tns run android”
Executing before-prepare hook from /Users/Username/Documents/Development/sample-Groceries/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 1.8.10
Processing node_modules failed. Exception: Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later.
我已经安装了 Android SDK 23,正如教程中所写:
android update sdk --filter tools,platform-tools,android-23,build-tools-23.0.3,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui
我该如何解决?我什么都试过了...
谢谢!