我在Android Studio中收到以下警告:
Warning:Dependency org.json:json:20140107 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
我无法删除依赖项,因为我在依赖项目中使用它。
如何在Android Studio中抑制上述Gradle警告?
答案 0 :(得分:6)
这足以满足您的所有需求:
compile ('some:project:or:library'){
exclude group: 'org.json', module: 'json'
}