Closed sonOfRa closed 4 years ago
So I copied the /opt/android/licenses folder into the location it is checking, and now it downloads the whole toolchain into the build directory:
Checking the license for package Android SDK Build-Tools 28.0.3 in /builds/mobile/wi-android-pos-app/licenses
License for package Android SDK Build-Tools 28.0.3 accepted.
Preparing "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)".
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" ready.
Installing Android SDK Build-Tools 28.0.3 in /builds/mobile/wi-android-pos-app/build-tools/28.0.3
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" complete.
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" finished.
Checking the license for package Android SDK Platform 28 in /builds/mobile/wi-android-pos-app/licenses
License for package Android SDK Platform 28 accepted.
Preparing "Install Android SDK Platform 28 (revision: 6)".
"Install Android SDK Platform 28 (revision: 6)" ready.
Installing Android SDK Platform 28 in /builds/mobile/wi-android-pos-app/platforms/android-28
"Install Android SDK Platform 28 (revision: 6)" complete.
"Install Android SDK Platform 28 (revision: 6)" finished.
Checking the license for package Android SDK Platform-Tools in /builds/mobile/wi-android-pos-app/licenses
License for package Android SDK Platform-Tools accepted.
Preparing "Install Android SDK Platform-Tools (revision: 29.0.2)".
"Install Android SDK Platform-Tools (revision: 29.0.2)" ready.
Installing Android SDK Platform-Tools in /builds/mobile/wi-android-pos-app/platform-tools
"Install Android SDK Platform-Tools (revision: 29.0.2)" complete.
"Install Android SDK Platform-Tools (revision: 29.0.2)" finished.
Any ideas what could be causing this?
Once again, an android build error that more or less magically disappears after we left it alone for a few months.
Hi,
first off: I'm not sure if this issue is even related to the docker image, but it might be, so I'm opening it here.
Since we upgraded the android gradle-plugin to version 3.4.x, it started complaining about us not having accepted licenses. The licenses are accepted in the docker images, so we're wondering if something changed. Our GitLab-CI file looks like this:
Now, on build, gradle first presents this warning:
And subsequently fails the build with:
Are you aware of any changes that need to be made (either to our ci-build or to the docker image) to work correctly with the 3.4 gradle plugin and above?