- Home /
After applying ads, unable to merge android manifests
After using admob, Unable to merge android manifest.. I have also edited android manifest and now it has same target API as in player settings.. here's the error.. CommandInvokationFailure: Unable to merge android manifests. C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -Xmx4096M -Dcom.android.sdkmanager.toolsdir="D:/Software/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[ Error:Invalid command manifmergerfallback ] stdout[
] exit code: 64 UnityEditor.Android.AndroidSDKTools.RunCommand (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, System.String workingdir, System.String errorMsg, System.Int32 memoryMB) (at :0) UnityEditor.Android.AndroidSDKTools.RunSDKToolWithReadLock (System.String[] command, System.String workingdir, System.String errorMsg) (at :0) UnityEditor.Android.AndroidSDKTools.MergeManifests (UnityEditor.Android.AndroidJavaTools javaTools, System.String target, System.String mainManifest, System.Collections.Generic.IEnumerable`1[T] libraryManifests) (at :0) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.MergeManifests (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String mainManifest, System.String targetManifest) (at :0) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
why dont you merge them manually? its basically coping the content from one to another. anyway, make sure your manifest has no erros maybbe is missing something
@xxmariofer how to do this? .. and tell me one thing that is it necessary for the version written in all manifests to be same as in build settings ??.. sorry for bad english
dont you have multiple manifest? or the issue is merging with unitys manifest? and no there iis no need will totally depend on you r needs unity target will override yours
@xxmariofer actually I was trying to apply admob ads when this error occurred.. I have two Androidmanifests.. One in plugins/Android.. And 2nd in plugins/Android/google$$anonymous$$obileAdsPlugins... I also dragged Androidmanifest-main in Plugins/Android for editing.. And then changed its $$anonymous$$SdkVersion to 16 and targetSdkVersion to 28..as in player settings
are you sure both manifest are well formated? if you remove one of them it works?
@xxmariofer yeah I deleted the Android manifest from plugins/Android/google$$anonymous$$obileAdsPlugins .. And it worked.. But I wanna apply ads in my game.. Then how should I edit that Android manifest in plugins/Android/google$$anonymous$$obileAdsPlugins?
please post it as comments not aanswers, and are you sure the manifest was well formated? what you can do is copying all the info from one manifest into the other making sure the format is preserve
here is the picture of plugins/android/google$$anonymous$$obileAdsPlugins/android$$anonymous$$anifests
[1]: /storage/temp/145552-android-manifest.png
I'm doing this first time I don't know its format.. Let me show you its picture
Your answer
![](https://koobas.hobune.stream/wayback/20220612211502im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Admob ads are not working. 1 Answer
Unity Ads - Androidmanifest FileNotFoundException error 1 Answer
Where can I put Ad admob ID? 0 Answers
Admob Interstitial Ads are not working in IOS, but it is working in Android 0 Answers
Admob Memory Issues 0 Answers