Unity : Invalid command manifmerger : exit code: 64

    Have you encounter this problem ? During unity Built to android .

  1. CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. C:/Program Files/Java/jdk1.8.0_131\bin\java.exe -Xmx2048M - Dcom.android.sdkmanager.toolsdir="C:/Users/Name/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files \Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" - stderr[ Error:Invalid command manifmerger ] stdout[ ] exit code: 64 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) UnityEditor.HostView:OnGUI()


Solution :

just to give a slightly more detailed answer, mirroring my answer from this stack overflow post:
The error happens due to this Unity bug (related to the latest Android SDK tools version).
You can see in the error message that the "manifmerger" tool returns an error code (64):
stderr[ Error:Invalid command manifmerger ] stdout[
] exit code: 64
The bug is fixed in the latest Unity (beta) version. There is a workaround, as described on that page:
Workaround for the customers.
For Windows, get "tools_r25.2.3-windows.zip" download and unzip it or, on mac: find MacOSX "tools_r25.2.3-macosx.zip" download and unzip it.
In the SDK path replace the tools folder.
This is a quote from the issuetracker page. I've added direct links to the downloads, since they seem to be missing from the Android website.

Comments

Popular Posts