在gradle里配置keystore

在主 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)
        }
    }

你可能感兴趣的:(在gradle里配置keystore)