Android Manifest xml missing - Build failed. Need Help!
Hi, when I try to build my game to Android it failes with the error: …"\Temp\StagingArea\android-libraries\GooglePlayGamesManifest.plugin' is missing AndroidManifest.xml file. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)"
That means the AndroidManifest.xml file is missing but I cant find it and dont know what to do if I would. Im stuck and Need your help… When I created a new game and build it on Android it worked so it has something to do with my specific game. Maybe I deleted the manifest accidentally? What should I do? Sorry for my bad english.
Answer by Konomira · Jul 17, 2020 at 07:37 PM
Late reply but I found out a way to fix this. I am using Admob, which was causing the problem. In my case, the build was looking for the path Plugins/Android/GoogleMobileAdsPlugin.androidlib/AndroidManifest.xml
however the path that was there was called Plugins/Android/GoogleMobileAdsPlugin/AndroidManifest.xml
. changing the folder name seems to have fixed the issue for me.
I discovered it by looking in ManifestProcessor.cs, which had the lines
string manifestPath = Path.Combine(
Application.dataPath,
"Plugins/Android/GoogleMobileAdsPlugin.androidlib/AndroidManifest.xml");
XDocument manifest = null;
try
{
manifest = XDocument.Load(manifestPath);
}
#pragma warning disable 0168
catch (IOException e)
#pragma warning restore 0168
{
StopBuildWithMessage("AndroidManifest.xml is missing. Try re-importing the plugin.");
}
...
adding + e.ToString()
allows you to see the full error and further debug it.
I hope this helps anyone else who was having this problem :)
Answer by Hafsa96 · Apr 30, 2020 at 06:49 PM
@TrueKayobi Were you able to solve this issue? @Gbread I've got the same issue. I was using Google Play services and everything worked fine. Now that I want to publish the game for IOS as well, I thought of using Cloudonce instead. I deleted the google play folder as Cloudonce already comes with it. I think I might have deleted something else too before importing CloudOnce although AndroidManifest is still there in the main folder (Asset/Plugin/Android). I hope I can get some clue as to what I might have done wrong.
Happened to me too. I only wanted to delete the CloudOnce Play services files and now I cant build my game
Answer by rpuls · Apr 05 at 10:17 PM
Have same issue after updating cloudOnce. Basically each time I update it I get these kind of troubles. And it's impossible to understand what's going on. Unfortunately the guy who releases the library updates is not writing any migration notes. :/
Your answer
Follow this Question
Related Questions
Android Manifest xml is missing! Build failed. 0 Answers
My build keeps failing, please help? 0 Answers
Google Play services and Admob issue 0 Answers
Localytics Integration Android Error? 1 Answer
Error with merging Android manifests 0 Answers