Failed to sign APK package (Unity 2017)
CommandInvokationFailure: Failed to sign APK package. C:\android_sdk\build-tools\25.0.2\apksigner.bat sign --ks "D:\work\musiverse_git_2017\android_keys/keys.keystore" --ks-pass pass:"mykspass" --ks-key-alias "musiverse" --key-pass pass:"mykeypasspart1-=ChYmykeypasspart2" "D:\work\musiverse_git_2017\Temp/StagingArea/Package.apk"
stderr[ Exception in thread "main" java.io.FileNotFoundException: D:\work\musiverse_git_2017\Temp\StagingArea\Package.apk-=ChY (The system cannot find the file specified)
As you see part of my key pass is after the filename Package.apk. Actually wtf? How can I escape the characters in my key pass? This was not a problem in any Unity 4 or 5 versions, only in 2017!
(Also there is no Unity 2017 topic)
I'm also having this problem. $$anonymous$$y older unity version seem to work fine, it's just the 2017 for me.
Answer by Byoagames · Aug 18, 2017 at 11:44 PM
Under Publishing Settings, try changing the Build System to Gradle (New) instead of Internal (Default)
When i build with gradle, I get an error on the device: Failed to initialize the Unity engine
When I change it to Gradle, I get:
AAPT: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
Changing to Gradle sometimes work for some users, but it's not the solution for all Failed to sign AP$$anonymous$$ package
errors.
$$anonymous$$y error is this one:
Failed to load signer "signer #1"
java.io.IOException: Failed to obtain key with alias "ega-prod" from C:/Users/$$anonymous$$arine/Desktop/EnergyCat/ega-client/ega-user.keystore. Wrong password?
But the problem here is that my password is correct, I am absolutly sure it's correct. And when passing to Gradle, I have this ins$$anonymous$$d :
Answer by Rajeesh_AR · Jan 11, 2018 at 12:35 PM
I also faced the same issue. But I was able to fix. The reason for the issue was that, I have not given the path for the 'keystore'.
click> Browse Keystore > choose the path
It worked.
Your answer
Follow this Question
Related Questions
Signing android APK production? 1 Answer
Can't build on Android when signed 2 Answers
keystore to PEM file 3 Answers