- 直接在当前项目 build.gradle文件修改如下
- android {
-
- useLibrary ‘org.apache.http.legacy‘
-
- compileSdkVersion 24
- buildToolsVersion "24.0.0"
-
- defaultConfig {
- applicationId "com.ican.subjects"
- minSdkVersion 15
- targetSdkVersion 23
- versionCode 1
- versionName "1.0"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.pro‘
- }
- }
-
- packagingOptions {
- exclude ‘META-INF/DEPENDENCIES.txt‘
- exclude ‘META-INF/LICENSE.txt‘
- exclude ‘META-INF/NOTICE.txt‘
- exclude ‘META-INF/NOTICE‘
- exclude ‘META-INF/LICENSE‘
- exclude ‘META-INF/DEPENDENCIES‘
- exclude ‘META-INF/notice.txt‘
- exclude ‘META-INF/license.txt‘
- exclude ‘META-INF/dependencies.txt‘
- exclude ‘META-INF/LGPL2.1‘
- }
-
- }
HttpPost导包遇到的问题
原文:http://www.cnblogs.com/dubo-/p/7912795.html