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

 

/**


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을 재설치 후 정상 빌드가 되는 것을 확인했다.





+ Recent posts