在主 module(一般是app)里面 android 下添加以下代码:
signingConfigs {
def alias = "keytore别名"
def password = "keytore密码"
def filePath = "/Users/wuliupai/Desktop/keystore/keystore.jks"
debug {
keyAlias alias
keyPassword password
storeFile file(filePath)
storePassword(password)
}
release {
keyAlias alias
keyPassword password
storeFile file(filePath)
storePassword(password)
}
}