Azure DevOps Pipeline Android SDK not found

Copper Contributor

Hi,

 

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'
        inputs:
          restoreSolution: '--/--.sln'
          noCache: true
      - task: CmdLine@2
        displayName: workload install maui
        inputs:
          script: |
            dotnet workload install maui-android --source https://aka.ms/dotnet8/nuget/index.json --source https://api.nuget.org/v3/index.json
      - task: DotNetCoreCLI@2
        displayName: dotnet build
        inputs:
          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

@Mafyou 

 

Do you start docker container with dotnet 8 workload?

I don't use docker.