Android通过gradle配置打包输出的文件名称

android.applicationVariants.all { variant ->

        variant.outputs.all
                {

                    outputFileName = "xxx_${defaultConfig.versionName}.apk"

                }
    }

xxx可以配置成你想要的样子,整个.apk钱可以配置成你想要的样子

0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x