Failed to read android debug key

妖精的绣舞 提交于 2019-12-24 00:56:53

问题


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.

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?

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)


回答1:


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.



来源:https://stackoverflow.com/questions/54814798/failed-to-read-android-debug-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!