{"comment":{"url":"https://api.github.com/repos/iTaurean/Gradle-BuildConfig/comments/15282448","html_url":"https://github.com/iTaurean/Gradle-BuildConfig/commit/bf1d1dac721631cff3a881ee5a3ec1f6651e794b#commitcomment-15282448","id":15282448,"user":{"login":"lvxineye","id":1195895,"avatar_url":"https://avatars.githubusercontent.com/u/1195895?v=3","gravatar_id":"","url":"https://api.github.com/users/lvxineye","html_url":"https://github.com/lvxineye","followers_url":"https://api.github.com/users/lvxineye/followers","following_url":"https://api.github.com/users/lvxineye/following{/other_user}","gists_url":"https://api.github.com/users/lvxineye/gists{/gist_id}","starred_url":"https://api.github.com/users/lvxineye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvxineye/subscriptions","organizations_url":"https://api.github.com/users/lvxineye/orgs","repos_url":"https://api.github.com/users/lvxineye/repos","events_url":"https://api.github.com/users/lvxineye/events{/privacy}","received_events_url":"https://api.github.com/users/lvxineye/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"bf1d1dac721631cff3a881ee5a3ec1f6651e794b","created_at":"2016-01-06T07:12:37Z","updated_at":"2016-01-06T07:12:37Z","body":"但是如果有库工程的，Android Studio中gradle配置的库library只能使用release参数。所以在库library下的gradle中使用buildConfigField来配置，是不起作用的。这是一个已知的bug，还没被修复。相关链接：\r\n- [stackoverflow](http://stackoverflow.com/questions/20176284/buildconfig-debug-always-false-when-building-library-projects-with-gradle)\r\n- [Issue](https://code.google.com/p/android/issues/detail?id=52962)"}}