I get the following warning in 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
I cannot remove the dependency because I use it in a dependent project.
How can I suppress the above Gradle Warning in Android Studio?
In recent versions of lint, you can also use a special line comment on the line above the error to suppress a warning. In . java and . gradle files, use a comment line this (where again the issue id can be a comma separated list of id's).
lintOptions { abortOnError false } This means it will run lint checks but won't abort the build if any lint error found. By default, its true and stops the build if errors are found.
This should be sufficient enough for all of your needs:
compile ('some:project:or:library'){
exclude group: 'org.json', module: 'json'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With