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 ools" -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.