Android BuildConfig.Debug 在module一直为false解决方案

来源:互联网 发布:大数据平台建设 编辑:程序博客网 时间:2024/05/18 18:02


down vote

With Android Studio 1.1 and having also the gradle version at 1.1 it is possible:

Library

android {    publishNonDefault true}

App

dependencies {    releaseCompile project(path: ':library', configuration: 'release')    debugCompile project(path: ':library', configuration: 'debug')}
原文地址:http://stackoverflow.com/questions/20176284/buildconfig-debug-always-false-when-building-library-projects-with-gradle
0 0