cloud-builders-community
cloud-builders-community copied to clipboard
Fix sdkmanager URL and path
The Flutter image is currently broken due to the changes in the Android side from sdk-tools
to cmdline-tools
, which is known to be a problem Flutter side with flutter doctor
.
The following problem occurs when using the current sdk-tools
:
Step #0: Step 23/28 : RUN yes "y" | flutter doctor --android-licenses
Step #0: ---> Running in 1b6620ba9317
Step #0: [91mAndroid sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.
Step #0: The command '/bin/sh -c yes "y" | flutter doctor --android-licenses' returned a non-zero code: 1
Finished Step #0
ERROR
This PR uses cmdline-tools
and updates the paths accordingly
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.
. If the bot doesn't comment, it means it doesn't think anything has changed.
ℹ️ Googlers: Go here for more info.
@googlebot I fixed it.
@amcooper this is cruicial to fix the flutter cloud builder. I came across the same issue and luckily this PR fixes it.
I also confirm this PR fixes the cloud builder. How could we get this into the main repo?
@ronanww ?