1. 程式人生 > >在AndroidStudio3.0上打包APK時,自定義檔名

在AndroidStudio3.0上打包APK時,自定義檔名

在module的gradle檔案中:

buildTypes {
    release {
        minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
android.applicationVariants.all { variant ->
    variant.outputs.all {
        outputFileName = "自定義檔名.apk"
}
}