[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(一)基本配置、依赖管理

更多相关文章

  1. QtAndroid详解(1):QAndroidJniObject
  2. Android 图片缩放与旋转的实现详解
  3. Android中DownloadManager实现文件下载实例详解
  4. Android中五大Manager详解及使用技巧
  5. Android五大布局详解及属性
  6. Android WebView缓存机制详解
  7. Android ButterKnife 注解框架的使用详解和原理分析

随机推荐

  1. 修改eclipse android 默认debug 签名
  2. 10个android开源项目
  3. 【原创】Android锁定横竖屏、splash,全屏
  4. [笔记]2012年移动大趋势(上)
  5. Android(安卓)-- 图像处理(信息量超大)
  6. Android(安卓)Camera 使用小结
  7. 十大Android(安卓)IDE工具和应用
  8. AndroidManifest.xml之 element详解
  9. Android常用的基本控件
  10. Android(安卓)Studio Tips-倍数提高工作