Unable to merge android manifests
I have imported the Google Mobile Ads Unity Plugin v2.3.1 to my project and added sdk and ads ID to it. But when i build my game i get the following error:
Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:\Program Files\Java\jdk1.8.0_60\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Me/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -
stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:4, D:\Unity Projects\Space Shooter\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:15] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.player.UnityPlayerNativeActivity] element:
<activity
@android:name="com.unity3d.player.UnityPlayerNativeActivity">
<intent-filter>
@android:name="android.intent.action.MAIN">
@android:name="android.intent.category.LAUNCHER">
-- <category
-- @android:name="android.intent.category.LEANBACK_LAUNCHER">
-- </category>
<activity
@android:name="com.unity3d.player.UnityPlayerNativeActivity">
@android:name="android.intent.action.MAIN">
@android:name="android.intent.category.LAUNCHER">
++ </intent-filter>
++ <meta-data
++ @android:name="unityplayer.ForwardNativeEventsToDalvik"
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml, D:\Unity Projects\Space Shooter\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:10] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
]
I hope someone can help me to fix this.
Answer by JACLEMGO · Dec 02, 2015 at 02:21 PM
This solved yet?
If not, Im having the same issues, but with Fuse and Stan's Ultimate Mobile (Dont think its Stan)
What I have tried:
Unable to merge android manifests....
Trying to merge incompatible....
<activity
-- @android:name="com.google.android.gms.ads.AdActivity">
--</activity>
--(end reached)
<activity
++ @android:name="com.google.android.gms.ads.AdActivity"
++ @android:theme="@android:style/Theme.Translucent">
++</activity>
I have not been able to get past the last issue. I think the value of the themes are set from the DLL or JAR files of Fuse
Your answer
Follow this Question
Related Questions
Unable to package Android app resources, even when blank app. 100 following. 0 Answers
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 1 Answer
Android build problem 0 Answers
Unable to convert classes into dex format 12 Answers
CommandInvokationFailure while using *.aar file in unity project 1 Answer