gpt4 book ai didi

Android Studio - 构建失败 '/home/node/Android/Sdk/build-tools/23.0.2/aapt' '以非零退出值 1 完成

转载 作者:行者123 更新时间:2023-12-03 18:11:42 24 4
gpt4 key购买 nike

突然,由于以下错误,我无法使用 Android Studio 构建我的项目。我附上了 build.gradle 文件和 SDK 安装图像,我已经尝试了几个小时但我无法解决。请帮我解决这个问题。

错误:

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

build.gradle 文件:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.+'
}
}

apply plugin: 'com.android.application'

android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.qapp"
minSdkVersion 14
targetSdkVersion 21
multiDexEnabled true
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}


dependencies {
compile project(':facebookSDK')
compile project(':payPalDemo1')
compile project(':uberLibrary')
compile project(':bSLibrary')
compile project(':pullToRefresh')
compile project(':androidmapsutils')

compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:multidex:1.0.0'
compile files('libs/android-async-http-1.4.6.jar')
compile files('libs/cardio.jar')
compile files('libs/UserFormValidation.jar')
}

SDK列表
enter image description here

enter image description here

最佳答案

尝试将其添加到您的 gradle 文件中:

android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 23
.....

dexOptions {
javaMaxHeapSize "4g"
}
}

关于Android Studio - 构建失败 '/home/node/Android/Sdk/build-tools/23.0.2/aapt' '以非零退出值 1 完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35632461/

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