관리 메뉴

개발 노트

visual studio code 오류 : You have not accepted the license agreements of the following SDK components:Warning: License for package Android SDK Platform 27 not accepted. 해결하기 본문

인턴 앱 개발 : 20.07.06~08.31/Front-end : Visual Studio Code

visual studio code 오류 : You have not accepted the license agreements of the following SDK components:Warning: License for package Android SDK Platform 27 not accepted. 해결하기

hayoung.dev 2020. 8. 20. 17:58

ionic cordova build android 입력하여 잘 실행되다가 오류 생김.

 

 

[오류 내용]

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> You have not accepted the license agreements of the following SDK components:Warning: License for package Android SDK Platform 27 not accepted.

  [Android SDK Platform 27].
  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 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.

* Get more help at help.gradle.org

BUILD FAILED in 8s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 27].
  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 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.

* Get more help at help.gradle.org

BUILD FAILED in 8s
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

 

 

위는 구글 라이선스 문제로, 해결 방법은

Android studio에서

settings > Appearance & Behavior > System Settings > Android SDK 에 들어가

SDK Tools 탭의 "Google Play Licensing Library"를 인스톨한다.

반응형