无法读取android调试密钥 [英] Failed to read android debug key
问题描述
尝试构建我的应用程序,我可以在 10 分钟前构建它,但突然间开始出现此错误:
Trying to build my app which I could build with no issues 10 minutes ago and all of a sudden started getting this error:
* What went wrong:
Execution failed for task ':app:packageDebug'.
> Failed to read key AndroidDebugKey from store "/Users/quinn/.android/debug.keystore": DerInputStream.getLength(): lengthTag=109, too big.
没有触及任何代码或触及密钥库 - 我所做的只是运行了一些单元测试,然后密钥停止工作.
Haven't touched any of the code or touched the keystore - all I did was run some unit tests and then the key stopped working.
当我运行 ./gradlew --stacktrace
时,构建成功,但尝试构建到任何设备时出现上述错误.
When i run ./gradlew --stacktrace
the build succeeds, but trying to build to any device and i get the error above.
其他人有没有遇到过这种情况/有什么办法可以解决这个问题?
Has this happened to anyone else / is there any way to fix this?
我注意到它也只影响了我的一个 android 项目——我所有其他的 android 项目都可以正常构建(我假设所有这些项目都使用了相同的调试密钥库)
I've noticed that it is also only affecting one of my android projects - all my other android projects can build fine (and I assumed the same debug keystore was used for all of them)
推荐答案
好吧,我为没有早点尝试这个而感到愚蠢 - 经过几个小时的恐慌后,我通过执行 Build -> 来构建它.先清理项目
.
Well I feel dumb for not trying this earlier - after a couple hours of panic I got it to build by doing Build -> Clean Project
first.
这篇关于无法读取android调试密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!