Skip to content
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

Can't accept Android SDK licenses in Azure pipeline #121

Open
CJSZ01 opened this issue May 10, 2024 · 2 comments
Open

Can't accept Android SDK licenses in Azure pipeline #121

CJSZ01 opened this issue May 10, 2024 · 2 comments
Labels
help wanted Community help is needed

Comments

@CJSZ01
Copy link

CJSZ01 commented May 10, 2024

`trigger:

  • master

stages:

  • stage: AndroidStage
    dependsOn: []
    displayName: Android
    jobs:

    • job: AndroidJob
      displayName: Android
      steps:

      • task: FlutterInstall@0
        displayName: "Install Flutter SDK"
        inputs:
        mode: 'auto'
        channel: 'stable'
        version: 'latest'

      • task: FlutterCommand@0
        displayName: "Run Flutter diagnostics"
        inputs:
        projectDirectory: '.'
        arguments: 'doctor -v'

      • task: FlutterBuild@0
        displayName: "Build application"
        inputs:
        target: 'aab'
        projectDirectory: '$(Build.SourcesDirectory)'
        extraArgs: '-t base_app/lib/main.dart'

`
Results in a build failure "To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager."
It seems impossible to accept the SDK license agreements in the pipeline.

@hey24sheep
Copy link
Owner

Hi, this is a pipeline bug in their vm. This shouldn't happen on the hosted VMs. Thankfully I never ran into this issue. I'll keep it open if someone from the community could help you.

You can open a bug on Microsoft Git repo https://github.com/microsoft/azure-pipelines-tasks

Also check this https://stackoverflow.com/questions/38096225/automatically-accept-all-sdk-licences

@hey24sheep hey24sheep added the help wanted Community help is needed label May 11, 2024
@hey24sheep
Copy link
Owner

@CJSZ01 Is this solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Community help is needed
Projects
None yet
Development

No branches or pull requests

2 participants