Android Studio 中任务 :app:compileDebugJavaWithJavac 的执行失败 [英] Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
本文介绍了Android Studio 中任务 :app:compileDebugJavaWithJavac 的执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在 Android Studio 中开发 Android 应用.不太确定出了什么问题.我几天前成功构建.任何帮助都会很棒.
I am developing an Android App in Android Studio. Not quite sure what went wrong. I was successfully building a few days ago. Any help would be great.
这里是错误:
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
这是我的 build.gradle
Here is my build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "21.1.2"
defaultConfig {
multiDexEnabled true
applicationId "com.tubbs.citychurchob"
minSdkVersion 14
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'])
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.parse.bolts:bolts-android:1+'
compile 'com.android.support:recyclerview-v7:23.1.0'
}
推荐答案
尝试将您的 buildToolsVersion
升级到23.0.1",如下所示:
Try to upgrade your buildToolsVersion
to "23.0.1", like this:
compileSdkVersion 23
buildToolsVersion "23.0.1"
如果您没有安装此版本的buildTools,请使用SDKManager作为提示下载.
If you didn't install the buildTools for this version, please download it with SDKManager as hint.
这篇关于Android Studio 中任务 :app:compileDebugJavaWithJavac 的执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文