统一添加facebook sdk后无法合并android清单
Posted
技术标签:
【中文标题】统一添加facebook sdk后无法合并android清单【英文标题】:Unable to merge android manifests after adding facebook sdk in unity 【发布时间】:2019-04-15 09:37:39 【问题描述】:我正在尝试在 Unity for android 中构建我的游戏。它运行良好,并且正在构建 apk!但在添加 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 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.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.MergeManifests(System.String 目标,System.String mainManifest,System.String[] libraryManifests,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit) 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()
任何帮助将不胜感激!
【问题讨论】:
【参考方案1】:统一版本?
插件的 AndroidManifest.xml 是否定义了 uses-sdk android:minSdkVersion
和 targetSdkVersion
?
如果 xml 没有定义 targetSdkVersion
然后定义它。或者尝试删除整个uses-sdk
。
【讨论】:
以上是关于统一添加facebook sdk后无法合并android清单的主要内容,如果未能解决你的问题,请参考以下文章
如何使用 Firebase 统一创建 Facebook 登录?
更改权限后无法在 Cordova iOS 上使用 Facebook SDK 登录
尝试在laravel中测试facebook sdk时的权限问题