Azure DevOps Pipeline Android SDK not found

Copper Contributor



It's stop and say: Android SDK not found. My app is in Maui and dotnet 8. Here is the plan:

      - task: NuGetCommand@2
        displayName: 'NuGet restore'
          restoreSolution: '--/--.sln'
          noCache: true
      - task: CmdLine@2
        displayName: workload install maui
          script: |
            dotnet workload install maui-android --source --source
      - task: DotNetCoreCLI@2
        displayName: dotnet build
          projects: ---/---.csproj
          arguments: -c Release -f net8.0-android

it says: " Error XA5300: The Android SDK directory could not be found. Install the Android SDK"

Working pipeline that generate the aab in dotnet 7


2 Replies



Do you start docker container with dotnet 8 workload?

I don't use docker.