如何添加堆栈跟踪或调试选项时,大厦的Andr​​oid Studio项目堆栈、选项、大厦、项目

由网友(一个人的荒凉)分享简介:我是想探讨在控制台输出项目生成错误如下:I was trying to investigate the project build error in the console output as follow::myapp:processDebugResources FAILEDFAILURE: Build fail...

我是想探讨在控制台输出项目生成错误如下:

I was trying to investigate the project build error in the console output as follow:

:myapp:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
...
...

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

我怀疑它是与未找到资源错误。我的问题是,在IDE级别如何添加 - 堆栈跟踪 - 调试选项,以便它可以产生对我来说更多的信息,以调试?

I suspect it has something to do with resource not found error. My question is, at IDE level how can I add --stacktrace or --debug option so that it can produce more information for me to debug?

推荐答案

您可以使用GUI从

File > Settings > Compiler (Gradle-based Android Project)

像这样

(注意图是在0.8.10之前,则该选项的不再的在编译器>摇篮部分,它现在在一个单独的名为节编译器(摇篮 - 基于Android项目)

(Note that the screenshot is from before 0.8.10, the option is no longer in the Compiler > Gradle section, it's now in a separate section named Compiler (Gradle-based Android Project))

阅读全文

相关推荐

最新文章