我正在尝试在Mac上的Android平台上运行我的Cordova项目。 我下载了Android Studio。
但是,每当我尝试在终端
中运行以下命令行时cordova run android
它以下列错误结束:
BUILD FAILED
Total time: 1.391 secs
Error: /Users/karel/Cordova Projects/demo/platforms/android/gradlew: 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 25].
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.
我错过了什么吗? 它适用于
cordova run ios
cordova run osx
cordova run browser
我如何接受消息所说的这些术语?我记得至少在下载Android Studio时接受某些条款。
我想知道是否必须从Android Studio或其他东西单独安装Android SDK。 (我没有使用Android的经验。)
感谢您的时间。你的帮助意味着很多。