Forum Discussion

Mafyou's avatar
Mafyou
Copper Contributor
Feb 14, 2024

Azure DevOps Pipeline Android SDK not found

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

 

Resources