Android的工作室:哪里是编译器错误输出窗口? [英] Android Studio: Where is the Compiler Error Output Window?

查看:712
本文介绍了Android的工作室:哪里是编译器错误输出窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我跑在我的Andr​​oid Studio项目,在消息窗口中,我得到:

When I 'Run' my project in Android Studio, in the 'Messages' window, I get:

Gradle: 
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':play01:compileDebug'.
> 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.

报告说,>编译失败;见编译器错误输出的详细信息。
那么,是编译器错误输出?和/或如何做我跑 - 堆栈跟踪选项

推荐答案

有一件事情你能做的就是关闭外部构建。这样做的时候,你有一个错误出现的消息让面板中点击编译器设置图标。您也可以通过转到文件打开编译器设置 - >设置 - >编译器。 (感谢名单以@maxgalbu此提示)。

One thing you can do is deactivate the external build. To do so click on "compiler settings icon" in the "Messages Make" panel that appears when you have an error. You can also open the compiler settings by going to File -> Settings -> Compiler. (Thanx to @maxgalbu for this tip).

取消选中使用外部建设

你会看到在控制台中的错误

And you will see the errors in the console

编辑:回归内部版本了,你可能会得到一些错误后,可以解决这些问题是这样的:<一href=\"http://stackoverflow.com/questions/17108393/android-studio-disabling-external-build-to-display-error-output-create-duplic/17220509#17220509\">Android工作室:禁用&QUOT;外部构建&QUOT;显示错误输出

After returning to "internal build" again you may get some errors, you can solve them this way: Android Studio: disabling "External build" to display error output create duplicate class errors

这篇关于Android的工作室:哪里是编译器错误输出窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆