gpt4 book ai didi

android - 构建 Android 项目时出错。 "AAPT process not ready to receive commands"

转载 作者:太空狗 更新时间:2023-10-29 14:43:02 25 4
gpt4 key购买 nike

我正在使用 Ubuntu 14.04 32 位操作系统。我将我的 Android Studio 2.2.2 更新到 2.3.3,升级后我无法构建我的项目。当我尝试构建我的项目时,Android Studio 总是显示类似

的错误
 Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands

这是我的build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion '25.0.0'
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
defaultConfig {
applicationId "akhil.com.d4donline"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.wdullaer:materialdatetimepicker:2.3.0'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.android.support:cardview-v7:25.3.0'
compile 'com.android.support:design:25.3.1'

testCompile 'junit:junit:4.12'
}

最佳答案

这是 Linux 中众所周知的错误,只需将构建版本降级到 23:

android {
compileSdkVersion 23
buildToolsVersion '23.0.3'

. . .

defaultConfig {
. . .

targetSdkVersion 23

. . .

而且您可能还必须将 gradle 版本更改为 2.2

关于android - 构建 Android 项目时出错。 "AAPT process not ready to receive commands",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44816263/

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