Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.NET MAUI] Incremental build fails with APT2260 #159

Open
bannus opened this issue Mar 16, 2023 · 3 comments
Open

[.NET MAUI] Incremental build fails with APT2260 #159

bannus opened this issue Mar 16, 2023 · 3 comments
Labels
Bug External Known issue in an external dependency

Comments

@bannus
Copy link
Collaborator

bannus commented Mar 16, 2023

Intune Android App SDK for .NET MAUI Issue

Summary

Occasionally, incremental build fails due to an error in aapt:

Severity	Code	Description	Project	File	Line	Suppression State
Error	APT2067	failed processing manifest.	TestApp	C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.26\tools\Xamarin.Android.Aapt2.targets	212	
Error	APT2260	resource style/MAMDialogTheme (aka com.microsoft.intune.mam.maui.testapp:style/MAMDialogTheme) not found.

This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.	TestApp	C:\src\mam-net\test\TestApp\Platforms\Android\AndroidManifest.xml	1	
Error	APT2260	resource style/MAMDialogTheme (aka com.microsoft.intune.mam.maui.testapp:style/MAMDialogTheme) not found.

This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.	TestApp	C:\src\mam-net\test\TestApp\Platforms\Android\AndroidManifest.xml	1	

Details

  • Microsoft.Intune.Maui.Essentials.android Version: 9.5.2-beta
  • Operating System (Mac, Linux, Windows) and Version: Windows
  • Visual Studio Version: 17.5.0

Logs

  • MSBuild logs: not available

Questions to Ask Before Submission

  1. Does the app build and launch without including the Microsoft.Intune.Maui.Essentials.android package? N/A
  2. Does the issue reproduce if you rebuild after deleting the bin and obj output folders? No
  3. Have you checked the .NET MAUI repository for similar issues? If so, please follow the guidance there or add that information to this issue.
  4. Are you using the latest Microsoft.Intune.Maui.Essentials.android NuGet package version? Yes
@bannus
Copy link
Collaborator Author

bannus commented Mar 16, 2023

This is a MAUI issue that will be fixed in their next release, see dotnet/android#7780

@bannus bannus added Bug Pending Future Release External Known issue in an external dependency labels Mar 20, 2023
@meghandaly
Copy link
Collaborator

Fix released in Xamarin.Android 33.0.46 and is available in Visual Studio 2022 17.6 Preview 3.

For compatibility purposes, it is recommended that users on the latest VS Preview update
Microsoft.Intune.Maui.Essentials.android to our latest release, 9.5.2-beta2.

@meghandaly meghandaly added Closed - Fixed Issue has been addressed with a verified fix. and removed Pending Future Release labels Apr 18, 2023
@Archit-Pikle
Copy link

This is still happening on Microsoft.Android.Sdk.Windows version 33.0.46

@Archit-Pikle Archit-Pikle reopened this Jun 1, 2023
@bannus bannus removed the Closed - Fixed Issue has been addressed with a verified fix. label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug External Known issue in an external dependency
Projects
None yet
Development

No branches or pull requests

3 participants