如何解决警告:依赖org.json:json:20080701在发布时被忽略?

时间:2017-06-17 11:08:02

标签: android json

启用 minifyEnabled true 时会显示此警告。

我已经尝试exclude group: 'org.json'

但没有成功。如何省略此警告以发布APK。

  

警告:依赖org.json:json:20080701因发布而被忽略   可能与Android提供的内部版本冲突。

以下是我的依赖。

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'ch.acra:acra:4.5.0'
    compile 'com.android.support:support-v4:24.2.0'
    compile 'com.android.support:appcompat-v7:24.2.0'
    compile 'com.android.support:support-v13:24.2.0'
    compile 'com.android.support:cardview-v7:24.+'
    compile 'com.android.support:recyclerview-v7:24.+'
    compile 'com.android.support:preference-v7:24.2.0'
    compile 'com.android.support:preference-v14:24.2.0'
    compile 'com.android.support:design:24.2.0'
    compile 'com.google.code.gson:gson:2.2.4'
    //    compile 'com.google.android.gms:play-services:9.0.2'
    compile 'com.google.android.gms:play-services-analytics:9.0.2'
    compile 'com.thebluealliance:spectrum:0.+'
    compile 'com.android.support:multidex:1.0.1'
    compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
    compile('org.apache.httpcomponents:httpmime:4.3') {
        exclude module: "httpclient"
    }
    compile project(':colorpicker')
    //Add the following lines one is for firebase and one is for volley
    compile 'com.firebase:firebase-client-android:2.5.1+'
    compile 'com.google.firebase:firebase-core:9.0.2'
    compile 'com.google.firebase:firebase-messaging:9.0.2'
    compile 'com.karumi:dexter:3.0.2'
}

0 个答案:

没有答案