Studio中compileDebugJavaWithJavac

Studio中compileDebugJavaWithJavac

本文介绍了Android Studio中compileDebugJavaWithJavac:执行失败的任务:应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Android应用Android Studio中。不太清楚什么地方出了错。我成功地建设一个前几天。任何帮助将是巨大的。

以下是错误:

 错误:执行失败的任务:应用程序:compileDebugJavaWithJavac。
>编译失败;详情请参见编译器错误输出。* 什么地方出了错:
执行失败的任务:应用程序:compileDebugJavaWithJavac。
>编译失败;详情请参见编译器错误输出。

下面是我的build.gradle

 应用插件:'com.android.application安卓{
compileSdkVersion 23
buildToolsVersion21.1.2defaultConfig {
    multiDexEnabled真
    的applicationIDcom.tubbs.citychurchob
    14的minSdkVersion
    targetSdkVersion 23
    版本code 1
    的versionName1.0
}
buildTypes {
    发布 {
        minifyEnabled假
      proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
    }
}
}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编译文件树(导演:'库',包括:'解析 - *罐子')
编译com.android.support:appcompat-v7:23.1.0
编译com.android.support:cardview-v7:23.1.0
编译com.parse.bolts:螺栓-机器人:1+
编译com.android.support:recyclerview-v7:23.1.0
}


解决方案

尝试升级buildToolsVersion为23.0.1,像这样的:

  compileSdkVersion 23
buildToolsVersion23.0.1

如果您没有此版本安装编译工具,请SDKManager下载的提示。

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.

Here is the error:

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.

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'
}
解决方案

Try to upgrade your buildToolsVersion to "23.0.1",like this:

compileSdkVersion 23
buildToolsVersion "23.0.1"

If you didn't install the buildTools for this version,please download it with SDKManager as hint.

这篇关于Android Studio中compileDebugJavaWithJavac:执行失败的任务:应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 17:42