I've added compile group: 'org.json', name: 'json', version: '20160810'
in build.gradle
file for using updated version JSON
. but, I got warnings with message saying
Warning:WARNING: Dependency org.json:json:20160810 is ignored for release as it may be conflicting with the internal version provided by Android.
Warning:WARNING: Dependency org.json:json:20160810 is ignored for debug as it may be conflicting with the internal version provided by Android.
how to resolve this?
I want to exclude
org.json:json
from android.jar
file.
keep the compile group: 'org.json', name: 'json', version: '20160810'
. how to do that.
I've tried adding
sourceSets {
main {
java {
exclude 'org/json/**'
}
}
}
but, didn't work.
Thanks in advance.