-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 '*/
}
컴파일 그룹을 제거하고 'org.apache.httpcomponents : httpclient-android : 4.3.5.1'** –
@Akash [Million Monkeys Programming Style] (https : //en.wikipedia. org/wiki/Programming_by_permutation) ... 중요하지 않습니다 ... 요점은 안드로이드 빌드 gradle 스크립트가 사용됩니다 ... – Selvin