最近在用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

更多相关文章

  1. Android 实现全屏显示的几种方法整理
  2. Android中TextView中内容不换行的解决方法
  3. Android模拟、实现、触发系统按键事件的方法
  4. android 2.2+ 完全退出程序的方法
  5. android读写文件
  6. android MediaPlayer出现RuntimeException: failure code: -38崩

随机推荐

  1. 安卓第七天笔记--网络编程一
  2. 转:android下拉列表框 spinner
  3. ListView组件的使用
  4. Android笔记(2)sqlite的用法
  5. Android(安卓)中的编码与解码
  6. eclispe 更新sdk Connection to https://
  7. Android应用开发——Drawable
  8. android之 ExpandableListView的使用
  9. Android(安卓)S5PV210 创建的video设备
  10. android 中 SQLiteOpenHelper的封装使用