gpt4 book ai didi

android - 错误 :Newer :Execution failed for task ':app:dexDebug' . com.android.ide.common.process.ProcessException

转载 作者:行者123 更新时间:2023-11-29 17:23:17 25 4
gpt4 key购买 nike

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/volume1/Android Studio/android-sdk-linux/build-tools/23.0.2/aapt'' finished with non-zero exit value 1

渐变:

     apply plugin: 'com.android.application'

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'
}
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.ibussinesscard"
multiDexEnabled true
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'


// compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:appcompat-v7:23.1.0'

}

-- 我已经尝试了 stack-overflow 和 Google 上所有可能的解决方案..

-- 我在解决进口方面有问题..

--重建或清理或更改 buildToolVersion 对我不起作用

-- 重新启动或构建-->Make 项目也不适合我

-- multiDexEnabled true 也不起作用

enter image description here

最佳答案

添加

  1. multiDexEnabled true

  2. 调用v7:23.1.0

试试这个

 android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.ibussinesscard"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'

}

然后Clean-Rebuild-Sync您的项目。

关于android - 错误 :Newer :Execution failed for task ':app:dexDebug' . com.android.ide.common.process.ProcessException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35745043/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com