我将现有项目从Unity 5.6.0更新到5.6.1,并且出现了我从未遇到过的错误。我环顾四周但却找不到任何相关信息。 consol文本提到了Tools和AndroidSDK,因此我确保从Android Studio更新所有内容,但问题并未解决。 SDK& JDK设置正确。我仍然无法建立(除了更新之外什么都没有改变,游戏一直运行好几个月)。如果有人能指点我如何解决这个问题,那就太棒了。 (此外,错误仅发生在此项目中) 这是出现的consol文本:
Error: Error while saving blame file, build will continue
Error: Le préfixe "tools" de l'attribut "tools:overrideLibrary" associé à un type d'élément "uses-sdk" n'est pas lié
UnityEditor.HostView:OnGUI()
(法语部分很奇怪,因为我的整个系统都是英文的,但它意味着:错误:"工具""工具的前缀:overrideLibrary"与某种类型相关联element" uses-sdk"没有链接)。 然后出现另一个错误,但我认为它与第一个错误相关:
AndroidSDKToolsException: Unable to merge android manifests. See the Console for more details.
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.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 target, System.String mainManifest, System.String[] libraryManifests, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.MergeManifests (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String targetManifest, System.String mainManifest)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.HostView:OnGUI()
答案 0 :(得分:0)
在 AndroidManifest.xml 中添加xmlns:tools="http://schemas.android.com/tools"
到manifest
标记。看起来应该是这样的:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" package="com.unity3d.player"
android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0">