Gradle构建不起作用:任务'app:compileDebugJava'的执行失败

时间:2015-04-08 01:38:08

标签: android gradle

我在尝试运行应用程序时遇到错误/错误是

  

错误:任务':app:compileDebugJava'的执行失败。   编译失败;有关详细信息,请参阅编译器错误输出。

以下是build.gradle文件中的代码

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

以下是Gradle控制台中的输出

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJava'.
>Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.057 secs

0 个答案:

没有答案