MAUI: 'Controls' could not be found and mipmap/appicon_round not found.

Sreejith Sreenivasan 1,001 Reputation points
2023-11-28T13:55:21.8733333+00:00

I am getting below errors when rebuilding the app in release mode before creating APK file.

Severity	Code	Description	Project	File	Line	Suppression State
Error	APT2067	failed processing manifest.
	MyProjectName	C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.43\tools\Xamarin.Android.Aapt2.targets	214	

Severity	Code	Description	Project	File	Line	Suppression State
Error	APT2260	resource mipmap/appicon (aka com.companyname.MyAppName:mipmap/appicon) 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.	MyProjectName	E:\My Projects\MAUI\MyProjectName\MyProjectName\Platforms\Android\AndroidManifest.xml	1	

Severity	Code	Description	Project	File	Line	Suppression State
Error	APT2260	resource mipmap/appicon_round (aka com.companyname.MyAppName:mipmap/appicon_round) 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.	MyProjectName	E:\My Projects\MAUI\MyProjectName\MyProjectName\Platforms\Android\AndroidManifest.xml	1	


Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0246	The type or namespace name 'Controls' could not be found (are you missing a using directive or an assembly reference?)	MyProjectName (net8.0-android)	E:\My Projects\MAUI\MyProjectName\MyProjectName\MainPage.xaml.cs	1	Active

I tried adding the appicon and appicon_round under Platforms/Android/Resources/mipmap, but no luck.

I am using Controls.UserDialogs.Maui - 1.3.0 for showing the userdialogs and due to that the last error is showing: The type or namespace name 'Controls' could not be found. I tried updating it to 1.5.0 but no luck.

My .Net version was 7 and I tried to update it to 8.

My VS(Windows) version is 17.9.0 Preview 1.0 also I tried on 17.8.1.

I tried creating a demo project with this issue, but in that there is no such issue.

Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    11 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.