警告:调试将忽略依赖项org.json:json:20160212,因为它可能与Android提供的内部版本冲突

时间:2016-12-06 18:02:28

标签: android android-studio android-gradle build.gradle

当我在运行android studio时出现警告。

我在build.gradle文件中添加了编译'com.google.firebase:firebase-admin:4.0.2'依赖项后显示此警告。这是消息控制台向我显示的内容。

Information:Gradle tasks [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
Warning:WARNING: Dependency org.json:json:20160212 is ignored for debug as it may be conflicting with the internal version provided by Android.
Warning:WARNING: Dependency org.json:json:20160212 is ignored for release as it may be conflicting with the internal version provided by Android.
Information:BUILD SUCCESSFUL
Information:Total time: 3.851 secs
Information:0 errors
Information:2 warnings
Information:See complete output in console

以下是我的build.gradle文件中的一个片段。

... 

configurations.all {
        resolutionStrategy {
            force 'com.google.code.findbugs:jsr305:1.3.9'
        }
    }
    configurations {
        compile.exclude group: "org.apache.httpcomponents", module: "httpclient"
    }

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        compile 'com.android.support:appcompat-v7:24.2.1'
        compile 'com.android.support:design:24.2.1'
        compile 'com.google.android.gms:play-services:9.6.1'
        compile 'com.google.firebase:firebase-admin:4.0.2'
        compile 'com.firebase:firebase-client-android:2.5.2'
        compile 'com.google.firebase:firebase-auth:9.0.2'
        compile 'com.google.firebase:firebase-core:9.6.1'
        compile 'com.google.android.gms:play-services-maps:9.6.1'
        compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
        testCompile 'junit:junit:4.12'
    }
    apply plugin: 'com.google.gms.google-services'

我不知道如何解决此错误。请帮我解决这个问题。 Thanx提前

0 个答案:

没有答案
相关问题