添加facebook sdk并尝试构建项目后,会发生此错误:
AndroidSDKToolsException:无法合并android清单。有关更多详细信息,请参见控制台。 UnityEditor.Android.AndroidSDKTools.DetectErrorsAndWarnings(System.String logMessages,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等待ForProcessToExit,System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandSafe(System.String javaExe,System.String sdkToolsDir,System.String [] sdkToolCommand,Int32 memoryMB,System.String workingdir,UnityEditor.Android.WaitingForProcessToExit等待ForProcessToExit,System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand(System.String [] sdkToolCommand,Int32 memoryMB,System.String workingdir,UnityEditor.Android.WaitingForProcessToExit等待ForProcessToExit,System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand(System.String [] sdkToolCommand,System.String workingdir,UnityEditor.Android.WaitingForProcessToExit waitForProcessToExit,System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand(System.String [] sdkToolCommand,UnityEditor.Android.WaitingForProcessToExit waitForProcessToExit,System.String errorMsg) UnityEditor.Android.AndroidSDKTools.MergeManifests(System.String目标,System.String mainManifest,System.String [] libraryManifests,UnityEditor.Android.WaitingForProcessToExit等待ForProcessToExit) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.MergeManifests(UnityEditor.Android.PostProcessor.PostProcessorContext上下文,System.String targetManifest,System.String mainManifest) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute(UnityEditor.Android.PostProcessor.PostProcessorContext上下文) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks(UnityEditor.Android.PostProcessor.PostProcessorContext上下文) UnityEditor.HostView:OnGUI()
答案 0 :(得分:0)
统一版本?
并确定插件的AndroidManifest.xml是否已定义uses-sdk android:minSdkVersion
和targetSdkVersion
?
如果xml没有定义targetSdkVersion
,则定义它。或尝试删除整个uses-sdk
。