相关疑难解决方法(0)

如何在构建Android Studio项目时添加Stacktrace或调试选项

我试图在控制台输出中调查项目构建错误,如下所示:

: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.
Run Code Online (Sandbox Code Playgroud)

我怀疑它与资源未找到错误有关.我的问题是,在IDE级别,我如何添加--stacktrace--debug选项,以便它可以为我调试生成更多信息?

android stack-trace android-studio

134
推荐指数
6
解决办法
13万
查看次数

使用gradle build android app时Lint失败了

我用android studio创建了一个应用程序,但每次我尝试使用命令gradle build来构建应用程序时,都会说"lint failed".当我检查gradle构建的调试信息时,它说:

21:10:26.215 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon,5,main]] finished, busy: 1.263 secs, idle: 0.034 secs
21:10:26.219 [ERROR] [org.gradle.BuildExceptionReporter] 
21:10:26.221 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
21:10:26.222 [ERROR] [org.gradle.BuildExceptionReporter] 
21:10:26.222 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
21:10:26.223 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':MyApp:lint'.
21:10:26.224 [ERROR] [org.gradle.BuildExceptionReporter] > class org.objectweb.asm.tree.ClassNode has interface org.objectweb.asm.ClassVisitor as super class
21:10:26.225 [ERROR] [org.gradle.BuildExceptionReporter] 
21:10:26.226 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
21:10:26.228 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':MyApp:lint'.
21:10:26.229 …
Run Code Online (Sandbox Code Playgroud)

android lint gradle android-studio

3
推荐指数
1
解决办法
8075
查看次数

标签 统计

android ×2

android-studio ×2

gradle ×1

lint ×1

stack-trace ×1