【发布时间】:2016-11-30 08:51:35
【问题描述】:
警告:依赖 org.apache.httpcomponents:httpclient:4.0.1 被忽略以进行调试,因为它可能与 Android 提供的内部版本冲突。
**Build.gradle**:-
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
lintOptions {
// set to true to turn off analysis progress reporting by lint
quiet true
// if true, stop the gradle build if errors are found
abortOnError false
// if true, only report errors
ignoreWarnings true
}
defaultConfig {
applicationId "com.org.mobility"
minSdkVersion 15
targetSdkVersion 24
versionCode 4
versionName "1.6.1"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/' }
mavenCentral()
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.1'
}
感谢任何帮助。 提前致谢。
【问题讨论】:
-
分享你的
build.gradle代码 -
@1911192110920:你能在这里为你的应用模块发布你的
build.gradle吗? -
不是这个,
build.gradle(app)分享那个文件
标签: android android-studio android-gradle-plugin build.gradle