Hi,
I’m trying to build my app for Android but for some reason I’m getting three errors, something to do with the android manifests. I’ve tried everything I could find on the internet, but nothing has worked. Here is the biggest error:
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_92\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Algis/Documents/android-sdk ools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:4, C:\Users\Algis\Desktop\Fact or Lie\Fact or Lie\Temp\StagingArea\android-libraries\google-play-services_lib\AndroidManifest.xml:4] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.player.UnityPlayerActivity] element:
<activity
-- @android:label="@string/app_name"
-- @android:name="com.unity3d.player.UnityPlayerActivity">
-- <intent-filter>
<activity
++ @android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale"
++ @android:label="@string/app_name"
++ @android:launchMode="singleTask"
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Algis\Desktop\Fact or Lie\Fact or Lie\Temp\StagingArea\android-libraries\play-services-ads-lite-9.4.0\AndroidManifest.xml:10] Trying to merge incompatible /manifest/application/activity[@name=com.google.android.gms.ads.AdActivity] element:
<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>
]
stdout[
Warning: [Temp\StagingArea\AndroidManifest-main.xml:1, C:\Users\Algis\Desktop\Fact or Lie\Fact or Lie\Temp\StagingArea\android-libraries\google-play-services_lib\AndroidManifest.xml:14] Main manifest has <uses-feature android:glEsVersion='0x00010000'> but library uses glEsVersion='0x00020000'
Note: main manifest lacks a <uses-feature android:glEsVersion> declaration, and thus defaults to glEsVersion=0x00010000.
[Temp\StagingArea\AndroidManifest-main.xml:4, C:\Users\Algis\Desktop\Fact or Lie\Fact or Lie\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:4] Skipping identical /manifest/application/activity[@name=com.unity3d.player.UnityPlayerActivity] element.
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Algis\Desktop\Fact or Lie\Fact or Lie\Temp\StagingArea\android-libraries\play-services-ads-lite-9.4.0\AndroidManifest.xml:11] Skipping identical /manifest/application/activity[@name=com.google.android.gms.ads.purchase.InAppPurchaseActivity] element.
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Algis\Desktop\Fact or Lie\Fact or Lie\Temp\StagingArea\android-libraries\play-services-base-9.4.0\AndroidManifest.xml:4] Skipping identical /manifest/application/activity[@name=com.google.android.gms.common.api.GoogleApiActivity] element.
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Algis\Desktop\Fact or Lie\Fact or Lie\Temp\StagingArea\android-libraries\play-services-basement-9.4.0\AndroidManifest.xml:5] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()