Skip to content

Incremental build issue when adding Android resource #9588

Closed
@jpobst

Description

Android framework version

net9.0-android

Affected platform version

.NET 9.0.101

Description

Adding a new Android resource to a project causes the incremental build to error with:

Resources\layout\activity_two.xml error APT2126: file not found.

This error comes from the Aapt2Compile task. It is looking for \obj\Debug\net9.0-android\res\layout\activity_two.xml but that file doesn't exist. Presumably some previous incremental step is not running and copying it there?

binlog.zip

Steps to Reproduce

dotnet new android
dotnet build -bl
copy Resources\layout\activity_main.xml Resources\layout\activity_two.xml
dotnet build -bl

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Area: Android ResourcesIssues with Android Resources (aapt, etc)Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions