Unbuntu下Android studio报Unable to recreate missing debug keystore错误
16lz
2021-01-23
最近在用ubuntu下使用android studio调试程序时,报出以下错误:
Execution failed for task ':app:validateDebugSigning'. > Unable to recreate missing debug keystore.
这个是由于android studio需要自动重新生成keystore时,没有权限。keystore文件默认是在/root/.android目录下。
要解决这个问题可以参考以下方法:
一 http://stackoverflow.com/questions/21415156/unable-to-recreate-missing-debug-keystore
二可以自己手动生成一个keystore,然后添加到项目中,在build.gradle文件中添加
android { signingConfigs { debug { storeFile file('your keyStore') } }}
也可以通过android studio File-》ProjectStructure-》signing 选择自己的keystore添加。 android studio生成keystore方法,请参考(也可自己搜资料,比较简单):
http://www.mobibrw.com/?p=1876
更多相关文章
- Android 实现全屏显示的几种方法整理
- Android中TextView中内容不换行的解决方法
- Android模拟、实现、触发系统按键事件的方法
- android 2.2+ 完全退出程序的方法
- android读写文件
- android MediaPlayer出现RuntimeException: failure code: -38崩