2017-11-15 1 views
0

오류 : cmd : 명령이 종료 코드 1과 함께 실패했습니다. 오류 출력 : FAILURE : 예외가 발생하여 빌드가 실패했습니다. 잘못된 무엇빌드했을 때 또는 그 당시 ionic app를 실행하면 아래 오류가 발생합니다.

  • : 문제가 루트 프로젝트 '안드로이드'를 구성 발생했습니다.

    You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26]. 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

  • 시도 : 스택 추적을 얻을 --stacktrace 옵션 를 실행합니다. 더 많은 로그 출력을 얻으려면 --info 또는 --debug 옵션을 사용하여 실행하십시오.

+0

나는 android studio를 사용하지 않았으며 내 OS는 Windows OS입니다. –

+0

[다음 SDK 구성 요소의 사용권 계약에 동의하지 않았습니다.] (https://stackoverflow.com/questions/39760172/you-have-not-accepted-the-license-agreements-of-the-following) -sdk-components) –

답변

1

나는 여러 가지 제안 된 해결책을 얻을 수 없었습니다.

cd "%ANDROID_HOME%\tools\bin" 
sdkmanager --licenses 

더 이상 작동하지 않습니다.

나는

sdkmanager --update 

를 실행하면 라이센스를

을 받아달라고 부탁 한 다음 인해 사용중인 tools 폴더에 실패한 것으로 나타났다.

에도 불구하고 라이센스 문제가 수정 된 것으로 보입니다.

라이센스 파일의 내용은 지금 :

8933bad161af4178b1185d1a37fbf41ea5269c55 
d56f5187479451eabf01fb78af6dfcb131a6481e 

희망이이에 나는만큼 시간을 낭비 다른 사람을 도움이됩니다.

+0

감사합니다. 사랑스러워 .. 내 대답을 사용하여 내 문제를 해결했다. –

관련 문제