- Home /
Question by
moh05 · Feb 28, 2018 at 12:01 PM ·
android buildandroidpluginandroid-manifestandroid-sdk
Unable to merge android manifests. Trying to merge incompatible element with unity 2017
Hello,
I am unable to build my android project. I understood that there are 2 manifest files with different data. I just don't know how to make them the same.
Below is the error I get:
CommandInvokationFailure: Unable to merge android manifests.
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/mohamad/Development/android-sdk-macosx/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -
stderr[
Error: [Temp/StagingArea/AndroidManifest-main.xml, /Users/mohamad/Desktop/Game Projects/ARAB FASHIONISTA/Arab_FashionistaAndroidB/Arab_Fashionista2/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-ads-lite-11.8.0/AndroidManifest.xml:12] Trying to merge incompatible /manifest/application/activity[@name=com.google.android.gms.ads.AdActivity] element:
<activity
-- @android:name="com.google.android.gms.ads.AdActivity"
-- @android:theme="@android:style/Theme.Translucent">
--</activity>
<activity
++ @android:exported="false"
++ @android:name="com.google.android.gms.ads.AdActivity"
++ @android:theme="@android:style/Theme.Translucent">
]
stdout[
[Temp/StagingArea/AndroidManifest-main.xml, /Users/mohamad/Desktop/Game Projects/ARAB FASHIONISTA/Arab_FashionistaAndroidB/Arab_Fashionista2/Temp/StagingArea/android-libraries/GoogleMobileAdsPlugin/AndroidManifest.xml:10] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
How to solve this? i have been searching for an entire day :(
Comment
Looks like you have imported two separate plug-ins having google ads. You might have to remove one of them and then reimport all assets.
How many plugins are you using? Try to open the plugins. Perhaps the easiest way is using 7-zip to look inside the plugin, they might be have the similar files for ads. If only 1 plugin is there, then Remove the plugin's folder and reimport it.