-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter builder fails with Android sdkmanager not found and android-licenses errors #526
Comments
Maybe try this diff --git a/flutter/Dockerfile b/flutter/Dockerfile
index 431d906..13946a8 100644
--- a/flutter/Dockerfile
+++ b/flutter/Dockerfile
@@ -28,9 +28,10 @@ RUN mkdir -p "${ANDROID_TOOLS_ROOT}"
ENV ANDROID_SDK_ARCHIVE="${ANDROID_TOOLS_ROOT}/archive"
RUN wget -q "${ANDROID_SDK_URL}" -O "${ANDROID_SDK_ARCHIVE}"
RUN unzip -q -d "${ANDROID_TOOLS_ROOT}" "${ANDROID_SDK_ARCHIVE}"
-RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "build-tools;28.0.0"
-RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "platforms;android-28"
+RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "build-tools;29.0.0"
+RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "platforms;android-29"
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "platform-tools"
+RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "--install" "cmdline-tools;latest" |
Can you explain your solution, how can use it to fix the error? |
https://github.com/Sugihiru/cloud-builders-community solved it for me. #518 should be accepted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected builder image
gcr.io/cloud-builders-community/flutter
Trying to build Flutter image and getting the error below
gcloud builds submit --config cloudbuild.yaml .
The text was updated successfully, but these errors were encountered: