- 直接在当前项目 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'
- }
-
- }
posted @
2017-11-28 23:17
dub
阅读(
186)
评论()
编辑
收藏
举报