参考论坛:http://stackoverflow.com/questions/16622528/android-studio-debug-keystore
主要的目的就是修改build.gradle文件,在android节点里面添加:
signingConfigs {
debug {
storeFile file('/xxxx/debug.keystore')
}
}
xxx代表keystore的位置,绝对路径。
操作步骤:
File-->Project Structure,然后选中“app”,接着是选中:“signing”-->"store file",选择你需要的keystore就好。