在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
这是一个hello world应用程序。
我该如何解决这个错误?
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'
}
最佳答案
尝试看看这个:
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生成工具目录(主要是/ home / user / Android / Sdk / build-tools)
,
现在在您的app:gradle文件中,将buildToolsVersion更改为“23.0.3”
,同步您的gradle文件,您应该一切顺利
希望Google修复其构建工具错误”
关于android - Android Studio 2.3.3使用gradle-3.3.3和android-plugin-2.3.3构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45261659/