Android httpClient.jar 在Android Studio 中的使用方法

不需要导入httpClient.jar.

只要添加高亮配置:
android {
compileSdkVersion 23
buildToolsVersion “23.0.2”

useLibrary 'org.apache.http.legacy'

defaultConfig {
    minSdkVersion 14
    targetSdkVersion 23
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
    }
}

packagingOptions {
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/DEPENDENCIES'
}

}

猜你喜欢

转载自blog.csdn.net/qq_43162517/article/details/82717622