Android gradle配置之打包自动命名配置

在Android节点配置如下:

android.applicationVariants.all { variant ->

        variant.outputs.all
                {

                    outputFileName = "xxx_${defaultConfig.versionName}.apk" //xxx代表自定义字符

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