2017-09-22 4 views
0

나는 APK를 구축하는 안드로이드 --release 명령 이온 빌드를 실행하기 위해 노력하고있어하지만 난이 오류명령은 종료 코드 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 플랫폼 25를 수동으로 설치하십시오. 이 오류를 수정해야하는 라이센스를 수락하도록 요청해야합니다.

+0

CLI에서 SDK 플랫폼 25를 설치 하시겠습니까? –

+0

'sdkmanager "platform-tools" "플랫폼, android-25"' – kRiZ