Reputation: 53
CommandInvokationFailure: Failed to build apk. See the Console for details. C:\Program Files\Java\jdk1.8.0_77\bin\java.exe -Xmx2048M -
Dcom.android.sdkmanager.toolsdir="C:/Users/fluentp/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar"stderr[ Error: Unable to read 'D:\Project\FacebookLogin\Facebook\debug.keystore' Error: Keystore was tampered with, or password was incorrect ] stdout[
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()
this is the error message on the unity console; it worked well ... but suddenly made out errors on the console... when i tried to build... please help me...
Upvotes: 1
Views: 4263
Reputation: 965
If this issue creates when switching between the platform, try to update the Project Keystore and Project Key password
Upvotes: 1
Reputation: 56
Check your keystore name is debug.keystore. If its correct,please check the alias and password.
Upvotes: 1
Reputation: 10750
Look at this:
Error: Keystore was tampered with, or password was incorrect
You entered wrong password for keystore
in Publishing Settings. Or you are not using the keystore that you used earlier to sign your APK.
Upvotes: 3