question

BruceKrueger-2659 avatar image
0 Votes"
BruceKrueger-2659 asked RobCaplan edited

Module ‘base’ is missing mandatory file ’manifest/AndroidManifest.xml’

Existing project in VS Xamarin Forms Android-
Keep getting "Module ‘base’ is missing mandatory file ’manifest/AndroidManifest.xml’".
How do I fix it so I can get past this?


dotnet-xamarin
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, BruceKrueger. Where and when do you face the error? Could you please post more details about the issue?

Do you encounter this problem with 'bundletool'? If so, here is a similar issue case you could refer to: https://github.com/google/bundletool/issues/80

0 Votes 0 ·

Using Visual Studio 2019 16.9.3 Xamarin Forms Android Project.

I get the message when trying to run a Debug and it is on an existing project that worked previously.
I didn't do any changes to the file.

Debug worked successfully and I saved all and closed the Solution. I upgraded VS to 16.9.3 and then turned off the computer.
Turned on the computer the next day, opened VS, opened the solution and ran Debug and am getting this message.

I have no idea what caused it but most importantly I don't know how to fix it.

0 Votes 0 ·

Try to empty the bin and obj folders of both the shared project and each platform project. Then clean and rebuild.

If it doesn't work, you could report this problem to the product team of VS for a solution on Developer Community.


0 Votes 0 ·

1 Answer

FadiHRezq-2623 avatar image
1 Vote"
FadiHRezq-2623 answered JarvanZhang-MSFT commented

I've also been getting this error recently after an upgrade.

I need to clean the project every time before I try to run again which is very frustrating, but cleaning the project works.

Using VS Version 16.9.3
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-9@54f8c24
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.34.1@daff8f4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@d210f11

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Might be worth looking at this report which is fixed but at this moment not yet released:

https://developercommunity.visualstudio.com/t/XamarinAndroid-deployment-fails-unless-/1359080

0 Votes 0 ·

Thanks for sharing the details about the issue.

0 Votes 0 ·