2017-03-20 15 views
0

を示しているが、私はこの警告ここ私のプロジェクトを再構築しながらhttpcomponentsについての私のプロジェクトの警告を再構築が

Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for debug as it may be conflicting with the internal version provided by Android. 

iが与えられたリンクに記載されたソリューションを追加しようとしているが、それでも問題が解決した私のgradle.buildで遭遇私はどうしたらいいですか?

android { 
compileSdkVersion 25 
buildToolsVersion "25.0.2" 
// tried this but no help 
// useLibrary 'org.apache.http.legacy' 
defaultConfig { 
    minSdkVersion 18 
    targetSdkVersion 25 
    versionCode 1 
    versionName "1.0.0" 
    resConfigs "en_US", "hi_IN" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
packagingOptions { 
    exclude 'META-INF/LICENSE' 
    exclude 'META-INF/DEPENDENCIES' 
    exclude 'META-INF/NOTICE' 
} 
configurations.all { 
    resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' 
} 

} 
    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' 
}) 
//tried this but no help 
    // compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1' 
compile 'com.android.support:appcompat-v7:25.1.1' 
compile 'com.android.support:support-v4:25.1.1' 
compile 'com.android.support:design:25.1.1' 
compile 'com.android.support:gridlayout-v7:25.1.1' 
compile 'com.android.support:cardview-v7:25.1.1' 
testCompile 'junit:junit:4.12' 

Question reffered for solution

+0

これは 'build.gradle'ですか? 'libs'ディレクトリに依存していますか? – nandsito

答えて

0

私のプロジェクトの私のlibsのディレクトリから

compile 'io.kickflip:sdk:1.3.1' 

とからも完全にこの依存関係を削除した後に解決される問題。

関連する問題