build type和product flavors
来源:互联网 发布:深圳冰川网络 编辑:程序博客网 时间:2024/05/16 01:11
build type和product flavors
一、简介
1、概念区分
build type是用来区分你的开发周期,如debug和release,只是两个不同的开发阶段,他们在功能上对用户来说其实并没有什么不同,实际的差别可能是debug版本会打印一些日志或者执行一些调试代码,实际上它们是同一个app;而product flavors用于区分你的策略,这使得它们已经是不同的app了,常见的策略如免费版本vs收费版本,多个渠道包等。
2、参数配置
由于build type和product flavors在定位上的不同,因此在build.gradle中buildType和productFlavor中的配置参数也各不相同。
buildType 主要配置app的打包
- shrinkResources
- proguardFile
- etc
productFlavor 配置不同的类和资源
- 不同的代码实现
- 不同的appName
- etc
productFlavor中可以覆盖defaultConfig中的参数
- applicationId
- minSdkVersion
- targetSdkVersion
- versionCode
- versionName
阅读全文
0 0
- build type和product flavors
- android studio 发布app出错:please select the product flavors to build and sign
- android studio 发布app出错:please select the product flavors to build and sign
- Mastering "Product Flavors" on Android
- please select the product flavors
- Flavors
- android build system中product的继承(inherit-product),加载(import-products)和选择(lunch)
- SAP product set type
- the type of build
- target specifies product type 'com.apple.product-type.framework.static', but there's no such product
- How to build a product with InstallShield
- Cannot instantiate the type List<Product>
- gem5编译错误:'ptrdiff_t' does not name a type 和 build/ALPHA/python/swig/stats_wrap.o
- Xcode target specifies product type 'com.apple.product-type.bundle.unit-test'
- XCODE编译错误:target specifies product type 'com.apple.product-type.tool'
- target specifies product type 'com.apple.product-type.bundle.unit-test'
- target specifies product type 'com.apple.product-type.bundle.ui-testing'
- target specifies product type 'com.apple.product-type.bundle.ui-testing'
- Material Design之底部导航栏
- c++远航之const
- ArcEngnine中IHookHelper的用法
- 线程(1)---创建线程的两种方式
- 《珠珠图案》教程七:文字创作要领四
- build type和product flavors
- python 设置命令行,安装python库
- Spark2.x学习笔记:5、Spark On YARN模式
- [博弈] A Multiplication Game
- Docker相关概念
- 64位win10系统无法安装.Net framework3.5的解决方法
- SpringMVC学习笔记
- 腾讯云分布式数据库(DCDB)
- Filter四种拦截方式