Android Native Plugin Not Working

Hey when i am trying to implement Android Native Plugin as well as Heyzap Ads sdk it gives following error

CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:\Program Files\Java\jdk1.8.0_25\bin\java.exe -Xmx2048M“F:/Downloads/android-sdk-windows ools” -Dfile.encoding=UTF8 -jar “C:/Program Files/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar” -

Error: [Temp\StagingArea\AndroidManifest-main.xml:8, E:\ABNEW1\Temp\StagingArea\android-libraries\google-play-services_lib\AndroidManifest.xml:5] Trying to merge incompatible /manifest/application/meta-data[] element:


UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String javaExe, System.String sdkToolsDir, System.String sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

Please Help

Thanks in Advance


It means that you have multiple AndroidManifest.xml files containing different information. For example a different minSdkVersion.
To solve this search your project directory (Assets folder) for the AndroidManifest.xml in your system explorer. You most likely will find multiple files. Open them and check their differences in the version properties such as minSdkVersion, maxSdkVersion, targetSdkVersion and make sure they are the same (all minSdk have to be the same, but minSdkVersion does not equal targetSdkVersion and so on of course).

Hope this helps


File1: minSdkVersion = "9", targetSdkVersion = "18"
File2: minSdkVersion = "6", targetSdkVersion = "18"

File1: minSdkVersion = "9", targetSdkVersion = "18"
File2: minSdkVersion = "9", targetSdkVersion = "18"

File1: minSdkVersion = "6", targetSdkVersion = "18"
File2: minSdkVersion = "6", targetSdkVersion = "18"