如何添加堆栈跟踪或调试选项时,大厦的Andr​​oid Studio项目 [英] How to Add Stacktrace or debug Option when Building Android Studio Project

查看:304
本文介绍了如何添加堆栈跟踪或调试选项时,大厦的Andr​​oid Studio项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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))

这篇关于如何添加堆栈跟踪或调试选项时,大厦的Andr​​oid Studio项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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