And error detail is
Error: [Temp\StagingArea\AndroidManifest-main.xml:16, C:\Users\Irfan\Desktop\Jungle Adventures - 20levels\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-basement-12.0.1\AndroidManifest.xml:6] Trying to merge incompatible /manifest/application/meta-data[@name=com.google.android.gms.version] element:
UnityEditor.HostView:OnGUI()
Can anyone help me out?
Thankyou
Good day.
It seems somethig with android plaform… Can you try to build for other platform to see if its the sdk?
Try to Reinstall sdk, follow this steps :
Bye!
Here’s what this error means, unable to merge them because you have duplicate lines of code inside 2 of them which interfere with each other. Let’s say in 1 Android Manifest you have minsdkversion set to 21, in another you have it set to 18, this causes an unable to merge error because it doesn’t know which one to pick. So you have to adjust one of them so they are both 18 or both 21 so the SDK knows how to merge them.
Your error lies within the meta-data. If it appears after adding firebase analytics, then you have another plugin which uses an Android Manifest which has the same line with @name=com.google.android.gms.version, but the other Manifest is using a different version. I’m assuming the Firebase plugins are .aar files, change them to .zip so you can open them and edit the Android Manifest easily. I can’t tell you which ones you have to change, you’ll just have to look which ones are colliding with each other, which it should say in the console but I don’t think you provided the entire console. However it’s inside com.google.android.gms.play-services-basement-12.01, but I don’t know which one is colliding with it.
@Anne-Pier here is complete console
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Irfan\Desktop\Jungle Adventures - 20levels\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Irfan\Desktop\Jungle Adventures - 20levels\Temp\StagingArea\android-libraries\com.android.support.support-v4-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Irfan\Desktop\Jungle Adventures - 20levels\Temp\StagingArea\android-libraries\com.google.firebase.firebase-analytics-impl-12.0.1\AndroidManifest.xml:14] Skipping identical /manifest/application/service[@name=com.google.android.gms.measurement.AppMeasurementService] element.
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Irfan\Desktop\Jungle Adventures - 20levels\Temp\StagingArea\android-libraries\com.google.firebase.firebase-analytics-impl-12.0.1\AndroidManifest.xml:11] Skipping identical /manifest/application/receiver[@name=com.google.android.gms.measurement.AppMeasurementReceiver] element.
[Temp\StagingArea\AndroidManifest-main.xml:22, C:\Users\Irfan\Desktop\Jungle Adventures - 20levels\Temp\StagingArea\android-libraries\Heyzap\AndroidManifest.xml:15] Skipping identical /manifest/application/activity[@name=com.google.android.gms.ads.AdActivity] element.
Warning: [Temp\StagingArea\AndroidManifest-main.xml:4, C:\Users\Irfan\Desktop\Jungle Adventures - 20levels\Temp\StagingArea\android-libraries\unity-android-resources\AndroidManifest.xml:1] Main manifest has but library uses targetSdkVersion=‘26’
]
exit code: 1
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()