在android studio-2.3.3中
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 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.example.shibly.myapplication"
minSdkVersion 10
targetSdkVersion 26
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:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
答案 0 :(得分:0)
试着看看这个: Gradle on Android Studio loading with error
"我遇到了同样的问题。我通过将构建工具版本从24.0.1降级到23.0.3来修复它。
从http://dl.google.com/android/repository/build-tools_r23.0.3-linux.zip下载旧的构建工具版本 ,解压缩下载的文件并将其粘贴到SDK build-tools目录中(主要是/ home / user / Android / Sdk / build-tools) , 现在在您的应用程序中:gradle文件将buildToolsVersion更改为" 23.0.3" ,同步您的gradle文件,你应该很高兴 希望谷歌修复它的构建工具错误"