Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The repository uses a **config-driven approach** where all bindings are defined
### Prerequisites
- a recent .NET SDK
- Cake .NET Tool: `dotnet tool install -g cake.tool`
- Microsoft OpenJDK 11 (JDK-17 not supported)
- Microsoft OpenJDK 21
- Android SDK and `$ANDROID_SDK_ROOT` environment variable
- Optional: `api-tools` for API diffs: `dotnet tool install -g api-tools`

Expand Down
15 changes: 15 additions & 0 deletions build/ci/setup-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,19 @@ steps:
Write-Host "##vso[task.setvariable variable=ANDROID_HOME]${{ parameters.androidSdkRoot }}"
displayName: Set ANDROID_SDK_ROOT and ANDROID_HOME to ${{ parameters.androidSdkRoot }}

- pwsh: |
# Remove problematic package.xml files that cause JAXB parsing issues with Java 21 on Windows
$androidSdkRoot = if ($env:ANDROID_SDK_ROOT) { $env:ANDROID_SDK_ROOT } else { $env:ANDROID_HOME }
if ($androidSdkRoot -and (Test-Path $androidSdkRoot)) {
Write-Host "Removing package.xml files from: $androidSdkRoot"
$files = Get-ChildItem -Path $androidSdkRoot -Filter "package.xml" -Recurse -ErrorAction SilentlyContinue
$files | Remove-Item -Force -ErrorAction SilentlyContinue
Write-Host "Removed $($files.Count) package.xml files"
} else {
Write-Host "Android SDK not found, skipping cleanup"
}
displayName: Clean Android SDK package.xml files
condition: eq(variables['Agent.OS'], 'Windows_NT')
continueOnError: true


Loading