dotnet / dotnet/maui

[ci-scan-net11] [CI] Core Android build intermittently fails with APT2260 missing Material attributes

Open
#36,847 2 comments 1 reaction 0 assignees View on GitHub
area-infrastructure ci-scan-net11 platform/android s/triaged
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

## Summary

The `Build macOS (Debug)` leg intermittently fails while building `Core.csproj` for `net11.0-android37.0`. Android resource linking reports `APT2260` because Material attributes such as `colorPrimary` and `actionBarSize` cannot be resolved.

## Build Information

- **Pipeline**: maui-pr
- **Build**: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1528586
- **Build ID**: 1528586
- **Branch**: net11.0
- **First seen**: 2026-07-27
- **Occurrences**: 1 in the examined build window

## Affected Legs

- Build macOS (Debug)
- Project: `src/Core/src/Core.csproj`
- Target framework: `net11.0-android37.0`

## Error Message

```text
Resources/values/styles.xml(2): error APT2260: resource attr/colorPrimary
(aka Microsoft.Maui:attr/colorPrimary) not found.
[src/Core/src/Core.csproj::TargetFramework=net11.0-android37.0]

Resources/values/styles.xml(2): error APT2260: resource attr/actionBarSize
(aka Microsoft.Maui:attr/actionBarSize) not found.
[src/Core/src/Core.csproj::TargetFramework=net11.0-android37.0]
```

## Reproduction Evidence

The signature was absent from the preceding build 1527938 and from the following build 1528665. It is therefore a one-build occurrence so far, not part of the deterministic failure set, but it caused a primary build leg to fail and should be tracked for recurrence.

## Recommended Action

Compare the Android resource-merge and restore inputs for build 1528586 against adjacent passing builds, especially Material/AppCompat resource dependencies and generated `Resources/values/styles.xml`. If the failure recurs, capture and compare the affected `Core.csproj` binlogs and resolved Android package assets before retrying.

> Manually filed from a `net11.0` CI audit using the `ci-scan-net11` issue format.

Contributor guide

Open the contributing guide

Research direction

Compare the Android resource-merge and restore inputs for build 1528586 with passing builds 1527938 and 1528665, focusing on src/Core/src/Core.csproj and generated Resources/values/styles.xml. If the failure recurs, capture and compare the affected Core.csproj binlogs and resolved Android package assets; done means identifying and addressing the missing Material attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
build-system, ci-cd, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.