2
單擊Android Studio 2.2.3上的任何gradle任務時的Gradle stop構建任務。Gradle stop構建任務
有在屏幕上或任何錯誤消息
我做錯了任何錯誤?
一些額外的數據 的Android 2.2.3工作室 搖籃 'com.android.tools.build:gradle:2.2.3'
搖籃頂層構建文件
buildscript {
repositories {
jcenter()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
allprojects{
repositories {
jcenter()
jcenter()
}
}
這是我的build.gradle文件。
def final myapplicationId = "com.package.myapp"
def final versionnameapp = "1"
def final versioncodeapp = 1
allprojects {
repositories {
// mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url 'http://clinker.47deg.com/nexus/content/groups/public' }
}
}
apply plugin: 'com.android.application'
configurations {
compile.exclude group: 'javax.inject', module: 'javax.inject'
}
android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 23
buildToolsVersion "23.0.2"
compileOptions {
encoding "UTF-8"
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
abortOnError false
}
dexOptions {
jumboMode true
}
signingConfigs {
release {
keyAlias 'chess'
keyPassword 'android'
storeFile file('/keystore/sam.keystore')
storePassword 'android'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/INDEX.LIST'
exclude 'META-INF/ASL2.0'
}
defaultConfig {
targetSdkVersion 23
renderscriptTargetApi 19
renderscriptSupportModeEnabled false
multiDexEnabled true
minSdkVersion 14
applicationId = myapplicationId
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
defaultConfig {
debuggable true
versionName = versionnameapp + "-DEBUG"
}
}
}
afterEvaluate {
tasks.matching {
it.name.startsWith('dex')
}.each { dx ->
if (dx.additionalParameters == null) {
dx.additionalParameters = []
}
dx.additionalParameters += '--multi-dex'
// dx.additionalParameters += "--main-dex- list=$projectDir/multidex.keep".toString()
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':reportes')
compile project(':locationlib')
compile 'com.android.support:percent:23.3.0'
compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
compile 'joda-time:joda-time:2.3'
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.amlcurran.showcaseview:library:5.0.0'
compile 'ch.acra:acra:4.5.0'
compile 'com.pnikosis:materialish-progress:1.7'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.github.panwrona:DownloadProgressBar:1.1'
compile 'org.jsoup:jsoup:1.8.3'
compile 'com.cleveroad:slidingtutorial:0.9.5'
}
預先感謝
請仔細閱讀並遵守http://stackoverflow.com/help/someone-answers :-) – Vampire