2017-09-22 24 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

相關問題