[ci-scan-net11] Android Controls.Core build fails with APT2260 missing MaterialComponents resources
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
## Summary
The macOS Android build of `Controls.Core` fails during AAPT2 resource linking because MaterialComponents theme resources and attributes are unavailable.
## Build Information
- **Pipeline**: maui-pr
- **Build**: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1557917
- **Build ID**: 1557917
- **Branch**: net11.0
- **First seen**: 2026-08-18
- **Occurrences**: 1 in last 10 builds
## Affected Legs
- macOS / Android 37.0 / Controls.Core Debug
## Error Message
```
2026-08-18T19:01:43.4835790Z /Users/cloudtest/vss/_work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Darwin/37.0.0-ci.main.2160/tools/Xamarin.Android.Aapt2.targets(156,3): error APT2260: resource style/Theme.MaterialComponents.DayNight (aka Microsoft.Maui.Controls:style/Theme.MaterialComponents.DayNight) not found. [/Users/cloudtest/vss/_work/1/s/src/Controls/src/Core/Controls.Core.csproj::TargetFramework=net11.0-android37.0]
```
## Recommended Action
Inspect the Android resource dependencies resolved for `Controls.Core`, especially the MaterialComponents package/resource archive, and compare the Android 37.0 restore and resource-link inputs with the preceding successful build.
Contributor guide
Research direction
Start with src/Controls/src/Core/Controls.Core.csproj and the Android 37.0 restore and resource-link inputs from the maui-pr build of microsoft.maui.sln. Inspect the resolved MaterialComponents package and resource archive, then compare them with the preceding successful build. Done means the Controls.Core Debug Android build links the Theme.MaterialComponents.DayNight resources without APT2260.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- build-system, ci-cd, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100