2016-09-27 3 views
-1

빌드 Gradle을가HTTP 클라이언트는 ...

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 23 
buildToolsVersion '23.0.1' 
useLibrary 'org.apache.http.legacy' 

defaultConfig { 
    applicationId "com.example.sushant.registrationdemo_tushar" 
    minSdkVersion 16 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

dependencies 
    { 
     compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1' 

    - List item 

     compile fileTree(dir: 'libs', include: ['*.jar']) 
     testCompile 'junit:junit:4.12' 
     compile 'com.android.support:appcompat-v7:23.0.1' 
     compile 'com.android.support:design:23.0.1' 
     /*compile 'org.apache.httpcomponents:httpcore:4.4.1' 
     compile 'org.apache.httpcomponents:httpclient:4.5 '*/ 
    } 
+0

컴파일 그룹을 제거하고 'org.apache.httpcomponents : httpclient-android : 4.3.5.1'** –

+0

@Akash [Million Monkeys Programming Style] (https : //en.wikipedia. org/wiki/Programming_by_permutation) ... 중요하지 않습니다 ... 요점은 안드로이드 빌드 gradle 스크립트가 사용됩니다 ... – Selvin

답변

0

그냥 Gradle을이 종속성을 추가 안드로이드 스튜디오에서 reslove하지

compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' 

는 도움이되기를 바랍니다.

관련 문제