docker-android icon indicating copy to clipboard operation
docker-android copied to clipboard

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

Open bonfimjustino7 opened this issue 4 years ago • 1 comments

Used with bitbucket pipeline

What went wrong: A problem occurred configuring project ':react-native-reanimated'.

Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;29.0.2 Android SDK Build-Tools 29.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: /opt/android

bonfimjustino7 avatar Oct 08 '21 13:10 bonfimjustino7

For now I solved the problem with:

RUN yes | sdkmanager --licenses --sdk_root=$ANDROID_SDK_ROOT

I don't know if the license agreement should be automated though.

zommerfelds avatar Sep 14 '22 09:09 zommerfelds

@bonfimjustino7 Thank you for the heads up and the suggestions. Unfortunately, I am not allowed to accept the license for all the users of this image. Therefore accepting the license is (as tedious as it is) required by the end-user of this image. I added the necessary steps (kudos @zommerfelds) to the README for the base image instructions: https://github.com/beevelop/docker-android#or-use-it-as-a-base-image

beevelop avatar Jan 11 '23 21:01 beevelop