科尔多瓦你好世界的应用程序

时间:2016-11-12 01:28:02

标签: android cordova

我想创建一个cordova hello world应用程序但是当我运行cordova run android时它会抛出这个错误:

Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我看到我必须在这个HelloWorld应用程序中实现许可证,但没有结果!

这也是我尝试过这个项目的根文件夹:

mkdir "$ANDROID_SDK/licenses""|| true

echo y | android update sdk --no-ui --all --filter extra-android-support | grep 'package installed'

还尝试找到ANDROID_HOME文件夹,但我的User\Name\中没有AppData文件夹,我认为这很奇怪

0 个答案:

没有答案