Android Gradle 配置补充
16lz
2021-01-23
[TOC]
BuildConfig 相关
- 自定义BuildConfig
defaultConfig { buildConfigField 'String','HTTP_URL','"http://baidu.com/"'}
- Module的 BuildConfig.debug 一直是false 的问题
Module 配置
android { publishNonDefault true}
app 配置
dependencies { debugCompile project(path: ':module', configuration: 'debug') releaseCompile project(path: ':module', configuration: 'release')}
友情链接
android gradle 详解
Gradle for Android(一)基本配置、依赖管理
更多相关文章
- QtAndroid详解(1):QAndroidJniObject
- Android 图片缩放与旋转的实现详解
- Android中DownloadManager实现文件下载实例详解
- Android中五大Manager详解及使用技巧
- Android五大布局详解及属性
- Android WebView缓存机制详解
- Android ButterKnife 注解框架的使用详解和原理分析