Unbuntu下Android(安卓)studio报Unable to recreate missing debug keystore错误
16lz
2022-05-19
最近在用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通过RSA加密解密实现License
- APP开发实战114-Android(安卓)Studio打包介绍
- android rootfs
- android存取数据方式:文件、SharedPreferences
- Android——编译odex保护
- Android解析XML文件的三种方式
- android ndk 调用第三方so
- NPM 和webpack 的基础使用