问题描述
我在唱歌我的释放的过程中,我忘记了keyStorePassword,所以我点击了重置.然后我收到这个错误.
错误:执行失败的任务':app:packagerelease'.
com.android.ide.common.Signing.KeyToolException:无法从Store"c:\ keystore \ keystore.jks"中读取键"app name"键读取键"app name"键:密钥库被篡改,或密码不正确
我解决这个问题的最佳方法是什么?
推荐答案
如果您忘记了密码,则无法修复此功能.如果您的应用程序未发布到PlayStore,则可以自由地将登录证书更改为新的.否则,您将无法在PlayStore上更新您的应用程序,您必须取消发布当前的应用程序,更改包名称并使用其他键和包发布新的一个新产品.所以始终尝试保留您的证书文件和密码.
其他推荐答案
很容易找到
丢失密码和keyalias
从Android Studio本身,使其成为项目,然后选择.gradle - >选择最新版本(在我的4.6中) - > taskhistory.bin
然后搜索
keyalias,keypassword,storepassword
欢呼声:D你有你的passowrds和keyalias ...快乐的建筑物发布apk
其他推荐答案
在Android Studio中打开项目.在左窗格中选择项目选项以在项目中显示所有文件和文件夹.你会发现.gradle文件夹,里面你会找到与你的毕业号码的文件夹,我是5.1.1
在该文件夹中,您将找到executionhistory文件夹,以及在该executionhistory.bin文件中.在Android Studio本身打开该文件.
现在在该文件中搜索(ctrl + f)for signingconfig.keypassword,您可以找到超过1个匹配项.通过所有这些,在其中一个比赛之后,您将找到您的密码.
ps - 我正在使用Android Studio 3.5
好运问题描述
I was in the in the process of singing my apk for my release and i forgot keystorepassword so i clicked reset. then I got this error.
Error:Execution failed for task ':app:packageRelease'.
com.android.ide.common.signing.KeytoolException: Failed to read key "app name" key from store "C:\keystore\keystore.jks": Keystore was tampered with, or password was incorrect
What is my best way to fix this?
推荐答案
If you forgot your password, there is no way to fix this. If your application is not published to the playstore, you are free to change the sign-in cert to a new one. Otherwise you will not be able to update your app at playstore, you have to unpublish your current app, change the package name and publish a new one with a different key and package. So always try keep a backup of your cert file and password.
其他推荐答案
It's easy to find
lost password and keyAlias
from the Android Studio itself, Make it to project then select .gradle -> select the latest version (in mine its 4.6) -> taskHistory.bin
then search for
keyAlias , keyPassword , storePassword
cheers :D you got your passowrds and keyAlias ... Happy building release APK
其他推荐答案
Open the project in Android Studio. On the left pane select Project option to display all the files and folders in your project. You'll find the .gradle folder, inside that you'll find the folder with your gradle number, mine was 5.1.1
Inside that folder, you'll find the executionHistory Folder, and inside that executionHistory.bin file. Open that file in Android Studio itself.
Now search(Ctrl+f) in that file for signingConfig.keyPassword and you'll find more than 1 matches. GO THROUGH ALL OF THEM and you'll find your password after one of these matches.
PS - I'm using Android Studio 3.5
Good Luck