반응형
250x250
Notice
Recent Posts
Recent Comments
Link
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

가끔 보자, 하늘.

라이센스 라이브러리 관련 Android Build error 본문

개발 이야기/개발 및 서비스

라이센스 라이브러리 관련 Android Build error

가온아 2019. 2. 15. 02:32

빌드 에러가 다음과 같은 경우...

 

/**

 

CommandInvokationFailure: Gradle build failed. 

...

...

 

stderr[

 

FAILURE: Build failed with an exception.

 

* What went wrong:

A problem occurred configuring root project 'gradleOut'.

> Failed to install the following Android SDK packages as some licences have not been accepted.

     build-tools;28.0.2 Android SDK Build-Tools 28.0.2

  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.

  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

  

  Using Android SDK: somewhere... 

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

 

* Get more help at https://help.gradle.org

 

BUILD FAILED in 1s

]

stdout[

WARNING: The specified Android SDK Build Tools version (28.0.0) is ignored, as it is below the minimum supported version (28.0.2) for Android Gradle Plugin 3.2.0.

Android SDK Build Tools 28.0.2 will be used.

To suppress this warning, remove "buildToolsVersion '28.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

...

...

Warning: License for package Android SDK Build-Tools 28.0.2 not accepted.

]

exit code: 1

...

...

 

 

**/

 

볼드체로 된 부분을 참고.

 

이런 에러가 나면 google play licensing library가 잘 설정되어 있는지 확인해야 한다. 

 

지원하는 안드로이드 버전에 따라 rev 2 이전의 라이브러리가 필요하기도 하다. 

 

나도 이번에 1  버전이 설치가 되어 있지 않아 계속 위와 같은 에러가 발생. 

 

라이브러리 1을 재설치 후 정상 빌드가 되는 것을 확인했다.

 

 

 

 

반응형