离子cordova构建android - 构建失败并出现异常

时间:2021-01-13 18:12:36

标签: android cordova ionic-framework

我是初学者,在使用 Ionic 时遇到了麻烦。我想使用 Cordova 为我的作业制作一个 android 应用程序。我尝试切换到 Android Studio,卸载-重新安装 Gradle,使用 --verbose 标志运行命令,但没有任何效果。当我输入“ionic cordova build android”时出现此错误:

**FAILURE: Build failed with an exception.**

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     platforms;android-29 Android SDK Platform 29
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

  Using Android SDK: C:\Users\Hp\AppData\Local\Android\sdk

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

* Get more help at https://help.gradle.org

**BU¦LD FAILED in 1s**
Command failed with exit code 1: C:\Users\Hp\hava\platforms\android\gradlew cdvBuildDebug -b C:\Users\Hp\hava\platforms\android\build.gradle
[ERROR] An error occurred while running subprocess cordova.

        cordova.cmd build android exited with exit code 1.

0 个答案:

没有答案