编译发布安卓app

android  {
    ...
    signingConfigs  {
        release  {
            storeFile  file('c:/users/your_name/key.jks')
            storePassword  'your_store_password'
            keyPassword  'your_key_password'
            keyAlias  'key'
        }
    }
    buildTypes  {
        release  {
            signingConfig  signingConfigs.release
            //  配置其他发布相关的选项,如混淆等
        }
    }
}

 

 

 










posted @ 2024-07-24 23:44  pearlcity  阅读(1)  评论(0编辑  收藏  举报