- Home /
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 -Dcom.android.sdkmanager.toolsdir="F:/Downloads/android-sdk-windows\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -
stderr[ 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[@name=com.google.android.gms.version] element:
] stdout[
] 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) UnityEditor.HostView:OnGUI()
Please Help
Thanks in Advance
Answer by InfiniBuzz · Jul 14, 2015 at 04:14 PM
Hi
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
Example
File1: minSdkVersion = "9", targetSdkVersion = "18"
File2: minSdkVersion = "6", targetSdkVersion = "18"
Solution1
File1: minSdkVersion = "9", targetSdkVersion = "18"
File2: minSdkVersion = "9", targetSdkVersion = "18"
Solution2
File1: minSdkVersion = "6", targetSdkVersion = "18"
File2: minSdkVersion = "6", targetSdkVersion = "18"
Your answer
Follow this Question
Related Questions
Normal map is not working with Unity 5 when Low-level Native Plugin Interface is used 0 Answers
How to add android 6.0 permission explanation 0 Answers
using shared libraries generated by Android project in Unity 0 Answers
After installing the .apk , the App Icon appears twice 1 Answer
[URGENT!]Android Manifest file keeps reverting changes after build! 0 Answers