Android uygulamamı yürütürken bu hatayı alıyorum (temizledim ve sonra oluşturdum, ancak hata hala mevcut)gradle build error Yürütme işlemi için başarısız oldu. '/build-tools/23.0.2/aapt' 'işlemi sıfır olmayan çıkış değeriyle bitti 1
Sync: TAMAM
Projesi olun: Hata
Temiz: Hata
çalıştırın: Hata
Error:Execution failed for task ':app:dexDebug' .com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/Jude/Library/Android/sdk/build-tools/23.0.2/aapt' finished with non-zero exit value 1
ben tr 'multiDexEnabled true' ile multidex desteği kaldırıldı ancak hata devam ediyor.
Benim gradle dosyası: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '23 .0.2'
defaultConfig {
applicationId 'com.kakao.inhouseagit'
minSdkVersion 16
targetSdkVersion 23
multiDexEnabled true
buildConfigField "String", "DEPLOY_PHASE", "\"PreRelease\""
buildConfigField "boolean", "DEBUG_TRACE", "true"
buildConfigField "boolean", "inhouse", "true"
}
signingConfigs {
debug {
storeFile file('keystore/debug.keystore')
}
release {
storeFile file('keystore/kakao.keystore')
storePassword 'sksmswjstjfdlek'
keyAlias 'kakao'
keyPassword 'sksmswjstjfdlek'
}
}
buildTypes {
alpha {
debuggable true
signingConfig signingConfigs.debug
buildConfigField "String", "DEPLOY_PHASE", "\"Alpha\""
}
beta {
debuggable true
signingConfig signingConfigs.debug
buildConfigField "String", "DEPLOY_PHASE", "\"Beta\""
}
preRelease {
debuggable true
signingConfig signingConfigs.debug
buildConfigField "String", "DEPLOY_PHASE", "\"PreRelease\""
}
release {
minifyEnabled true
shrinkResources true
debuggable false
buildConfigField "boolean", "DEBUG_TRACE", "false"
buildConfigField "String", "DEPLOY_PHASE", "\"Release\""
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt', 'proguard_clearlog.cfg'
signingConfig signingConfigs.release
}
}
lintOptions {
checkReleaseBuilds true
abortOnError false
checkAllWarnings true
xmlReport true
htmlReport true
disable "InvalidPackage", "MissingTranslation"
}
packagingOptions {
exclude 'META-INF/DEPEDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
productFlavors {
inhouse {
applicationId 'com.kakao.inhouseagit'
testApplicationId 'com.kakao.inhouseagit-test'
versionCode 82
versionName '2.7.1.1'
buildConfigField "boolean", "inhouse", "true"
}
io {
applicationId 'io.agit'
testApplicationId 'io.agit-test'
versionCode 10
versionName '1.0.2'
buildConfigField "boolean", "inhouse", "false"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
repositories {
maven { url 'http://maven.daumcorp.com/content/groups/daum-ma-group' }
maven { url 'http://maven.daumcorp.com/content/groups/daum-public' }
}
dependencies {
compile(group: 'com.kakao.sdk', name: 'kakaolink', version: '1.0.52') {
exclude group: 'com.google.android', module: 'support-v4'
}
compile 'com.android.support:support-annotations:23.0.1'
compile 'com.google.android.gms:play-services-gcm:8.1.0'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.1'
compile 'com.google.guava:guava:18.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'commons-io:commons-io:2.4'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.9'
compile 'com.fasterxml.jackson.core:jackson-core:2.6.2'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.6.2'
compile 'com.fasterxml.jackson.core:jackson-databind:2.6.2'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile('org.apache.httpcomponents:httpmime:4.2.2') {
exclude group: 'org.apache.httpcomponents', module: 'httpcore'
exclude group: 'commons-logging', module: 'commons-logging'
}
// for multi dex
compile 'com.android.support:multidex:1.0.1'
// for Emoticon SDK
// emoticon sdk를 사용하기 위해 필요.
compile(group: project.KAKAO_SDK_GROUP, name: 'kakaolink', version: project.KAKAO_SDK_VERSION)
compile project(':emoticon')
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.10.19"
compile "com.davemorrissey.labs:subsampling-scale-image-view:3.3.0"
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
alphaCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
betaCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
preReleaseCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
}
// TODO remove legacy package
useLibrary 'org.apache.http.legacy'
}
İyiydi:
eklentisi uygulamak önce,
compile 'com.android.support:design:23.1.1'
Yerleşimimi Navigationview ile değiştirdim, bu yüzden 'com.android.support' tasarımını koydum: 23.1.1 'sonra hata devam ediyor. Ve şimdi, 'run' düğmesine bastığımda, 'Gradle Buid Running', 10 ~ 15 dakika kadar sürer ve aynı hatayla sona erer.
Benim proje sınıfım, classpath 'com.android.tools.build:gradle:1.3.1' kullanır. Birisi bana nerede yanlış gittiğime dair birkaç işaretçi verebilirse, inanılmaz derecede minnettar olurdum. Bu beni öldürüyor.
Teşekkürler.
Terminali kurarak çözdüm. Ama yapı kodlarını koyduğumda bile, android stüdyo düğmesiyle hata geliyor. http://developer.android.com/intl/ko/tools/building/building-cmdline.html Teşekkürler. neyse. –