【发布时间】:2016-09-18 17:04:46
【问题描述】:
我遵循了 Mac 的整个入门教程 (https://docs.nativescript.org/tutorial/chapter-1)。
现在我尝试运行示例应用程序。 IOS 工作正常! 但 Android 无法运行:在 USB 设备上不行,在 Genymotion 上也不行。
输入后的错误如下: “tns 运行安卓”
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
我该如何解决?我什么都试过了……
谢谢!
【问题讨论】:
标签: android angularjs sdk nativescript tns