无法合并android清单。

时间:2018-07-11 02:53:01

标签: android facebook unity3d

CommandInvokationFailure: Unable to merge android manifests. 
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -Xmx2048M - Dcom.android.sdkmanager.toolsdir="/Users/ompatel/Library/Android/sdk/tools" -  Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

stderr[
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at SDKMain.main(SDKMain.java:130)
Caused by: java.lang.NumberFormatException: For input string: "4.0.3"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at com.android.manifmerger.XmlDocument.getApiLevelFromAttribute(XmlDocument.java:382)
at com.android.manifmerger.XmlDocument.checkUsesSdkMinVersion(XmlDocument.java:558)
at com.android.manifmerger.XmlDocument.addImplicitElements(XmlDocument.java:465)
at com.android.manifmerger.XmlDocument.merge(XmlDocument.java:161)
at com.android.manifmerger.ManifestMerger2.merge(ManifestMerger2.java:873)
at com.android.manifmerger.ManifestMerger2.merge(ManifestMerger2.java:259)
at com.android.manifmerger.ManifestMerger2.access$600(ManifestMerger2.java:60)
at com.android.manifmerger.ManifestMerger2$Invoker.merge(ManifestMerger2.java:1457)
at com.android.manifmerger.Merger.process(Merger.java:153)
at com.android.manifmerger.Merger.main(Merger.java:42)
... 5 more
]
stdout[

]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p,       UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
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)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

当我统一构建项目时出现此错误,任何人都可以请我解决此问题。添加Facebook sdk之后开始发生这种情况,但是在添加fb sdk之前我突然弹出了googleIOSResolver。

提前感谢

0 个答案:

没有答案