bitrise-steplib / bitrise-step-flutter-build

MIT License
7 stars 13 forks source link

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

Closed g123k closed 3 years ago

g123k commented 4 years ago

Hello,

I am currently using Flutter beta and the step fails with this error:

Could not determine the dependencies of task ':app:compileInternalReleaseJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;28.0.3 Android SDK Build-Tools 28.0.3
  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

How can I fix this?

cmengler commented 4 years ago

I had the same problem -- in the interim I've added this step above flutter-build:

- script@1.1.5:
    inputs:
    - content: |-
        #!/usr/bin/env bash
        yes | $ANDROID_HOME/tools/bin/sdkmanager --install "build-tools;28.0.3"
github-actions[bot] commented 3 years ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

github-actions[bot] commented 3 years ago

I'll close this issue as it doesn't seem to be relevant anymore. We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.