当前位置:网站首页>Gradle's method of dynamically modifying APK package name
Gradle's method of dynamically modifying APK package name
2022-07-03 08:22:00 【cuncaojin】
Magical outputFileName
android gradle plguin Upgrade to 3.x.x after ( Such as classpath ‘com.android.tools.build:gradle:3.6.1’), Resulting in previous modifications apk Name of package api It's not working , Need to
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "${variant.name}-${variant.versionName}.apk"
}
}
But this outputFileName How did it come about ?
david.mihola The answer of the great God
Look for the source code , Here's what we found :
Guess what , The actual processing should be BaseVariantOutputImpl
The children of ApplicationVariantImpl
了
ApplicationVariantImpl
Android Gradle Plugin API , A ladder may be needed , The source code package is ready
BaseVariant
ApkVariant
ApplicationVariant
com.android.builder.DefaultProductFlavor
Android Plugin DSL Reference
ProductFlavor
Source code Source package
边栏推荐
- Un système de gestion de centre commercial pour la conception de cours de technologie d'application de base de données
- Golang 中string和int类型相互转换
- redis集群系列四
- P2622 light off problem II (state compression search)
- [K & R] Chinese Second Edition personal questions Chapter1
- [global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel
- 【音视频】ijkplayer错误码
- I want to do large screen data visualization application feature analysis
- Luaframwrok handles resource updates
- Transplantation of tslib Library
猜你喜欢
数据分析练习题
数据库应用技术课程设计之商城管理系统
超限黑客认知
Image processing 8-cnn image classification
Base64和Base64URL
Student educational administration management system of C # curriculum design
Unity2019_ Natural ambient light_ Sky box
數據庫應用技術課程設計之商城管理系統
I want to do large screen data visualization application feature analysis
Scite change background color
随机推荐
A tunnel to all ports of the server
What is BFC?
[set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)
方正锐利重磅升级到12.0版本,包装印前处理更加便捷、高效!
【更新中】微信小程序学习笔记_3
Xlua task list youyou
[global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel
数据库应用技术课程设计之商城管理系统
100 GIS practical application cases (78) - Multi compliance database design and data warehousing
简易入手《SOM神经网络》的本质与原理
Pulitzer Prize in the field of information graphics - malofiej Award
[set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
C语言-入门-精华版-带你走进编程(一)
Base64编码简介
L'installateur a été installé avec une erreur inattendue
Some understandings of 3dfiles
Flex flexible box layout
Ilruntime learning - start from scratch
P2622 light off problem II (state compression search)
796 · 开锁