2017-09-22 26 views
0

我试图运行命令离子构建Android --release打造的APK,但我得到这个错误命令失败,退出代码1个错误输出:失败:建立失败,一个异常

BUILD FAILED

Total time: 2.623 secs 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 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. enter image description here

回答

0

使用SDK管理器手动安装SDK Platform 25。这应该要求您接受应该修复此错误的许可证。

+0

让我在CLI中安装SDK Platform 25,?? –

+0

'sdkmanager“platform-tools”“platforms; android-25”' – kRiZ

相关问题