Error while saving blame file
Hey all. I updated an existing project from Unity 5.6.0 to 5.6.1 and a error I've never encountered appeared. I've looked around but couldn't find anything about it. The consol text mentions Tools and AndroidSDK so I made sure to update everything from Android Studio but the issue is not fixed. SDK & JDK are setup correctly. I still can't build (Nothing has changed except the update and the game has been working well for months). If anyone could give me pointers on how to fix this, it'd be awesome.
Here is the consol text that appears :
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()
(The french part is weird since my whole system is in English, but it means : Error: The "tools" prefix of the "Tools:overrideLibrary" associated with a type of element "uses-sdk" is not linked).
Then an other error appears, but I think it is related to the first :
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()
Thanks.
Have same problem: "Error: Error while saving blame file, build will continue Error: The prefix "tools" for attribute "tools:overrideLibrary" associated with an element type "uses-sdk" is not bound."
Answer by NEBR · Jun 27, 2017 at 07:43 AM
I added line xmlns:tools="http://schemas.android.com/tools" into android manifest file (under package line), it's fixed problem
It worked for me too. Android$$anonymous$$anifest.xml can be found in Assets/Plugins/Android. The corrected opening tag should look like this:
<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">
Thanks a ton man......stuck in this problem for 3 weeks now..........finally solved
This worked for me as well - 2017.1 And with Vuforia
Thanks!!! :-)
It worked perfectly man, Thank you so much, but what is the reason behind this error?
Answer by Chikist · May 25, 2017 at 11:46 PM
Downgrading sdk-tools to v25.x helps to resolve this issue. https://github.com/googleads/googleads-mobile-unity/issues/423
@Chikist
I've tried adding the "xmlns:tools="http://schemas.android.com/tools"as said, now it builds the android apk both using Build alone and Build and Run options.
Another problem The screen (on my devices: I tested different android devices, same issue) is completely white. Not showing anything! except for the game name on the top,
I Appreciate anyone's help!
Answer by ThorstenBux · May 31, 2017 at 12:02 AM
Yeah, but what if you want/need to use sdk-tools v25.x?
You probably have more than 1 manifest file. Find the other and eli$$anonymous$$ate it.
Answer by ShowGames_Shoji · Jun 03, 2017 at 09:37 AM
I was on the same Error while saving blame file, but since AndroidManifest.xml was an error, I deleted AndroidManifest.xml of Assets / Plugins / Android, I could create an apk.
Your answer
Follow this Question
Related Questions
AndroidManifest-main.xml merging error 6 Answers
Unable to merge Android manifests. (5.6.0p3) 2 Answers
Getting odd compiler error when I try to build my game to my Android phone. 0 Answers
Unity detect wrong androidSDK version 0 Answers
Android build problem 0 Answers