Issue
I'm just trying to build a simple android project on Jenkins, and everything about SDK is installed as seen below picture
But Jenkins failed with this log
Observed package id 'tools' in inconsistent location 'C:\Users\Administrator\AppData\Local\Android\sdk\tools' (Expected 'C:\Users\Administrator\AppData\Local\Android\sdk\tools\tools')
Checking the license for package Android SDK Build-Tools 29.0.1 in C:\Users\Administrator\AppData\Local\Android\sdk\tools\licenses
Warning: License for package Android SDK Build-Tools 29.0.1 not accepted.
Checking the license for package Android SDK Platform 29 in C:\Users\Administrator\AppData\Local\Android\sdk\tools\licenses
Warning: License for package Android SDK Platform 29 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;29.0.1 Android SDK Build-Tools 29.0.1
platforms;android-29 Android SDK Platform 29
I also specified SDK path on Jenkins configuration
Why Jenkins search the things under sdk/tools/tools ?
Solution
This is only a warning; what kills the build is the license not being accepted.
I'd suspect the values in settings.gradle
to be at fault for this behavior.
Answered By - Martin Zeitler
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.