简体   繁体   English

Android Studio Gradle调试失败

[英]Android Studio gradle failure on debug

Gradle: FAILURE: Build failed with an exception. Gradle:FAILURE:构建因异常而失败。

  • What went wrong: Execution failed for task ':name:compileDebug'. 出了什么问题:任务':name:compileDebug'的执行失败。

    Compilation failed; 编译失败; see the compiler error output for details. 有关详细信息,请参见编译器错误输出。

  • Try: Run with --stacktrace option to get the stack trace. 尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. 使用--info或--debug选项运行以获取更多日志输出。

Try to run "gradlew compileDebug" from the command line to fix this problems. 尝试从命令行运行“ gradlew compileDebug”以解决此问题。 See this answer for more information. 有关更多信息,请参见此答案。

Also make sure to update your gradle plugin to the latest version. 另外,请确保将gradle插件更新为最新版本。 (0.4.3 since yesterday) Use com.android.tools.build:gradle:0.4.+ in your gradle.build file and you'll always get the latest gradle android plugin. (从昨天开始为0.4.3)在gradle.build文件中使用com.android.tools.build:gradle:0.4.+ ,您将始终获得最新的gradle android插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM