在工程文件夹的build.gradle文件中的增加以下内容:
android {
signingConfigs {
debug {
storeFile file("your.keystore")
}
}
}
参考自:http://stackoverflow.com/questions/17189076/what-is-the-equivalent-of-eclipse-custom-debug-keystore-in-android-studio