我试图调查控制台输出中的项目构建错误,如下所示:
: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.
我怀疑这与资源未找到错误有关。我的问题是,在集成开发环境级别,我如何添加--stacktrace
或--debug
选项,以便生成更多信息供我调试?
发布于 2015-04-10 02:09:47
在Android Studio Beta 1.2
的Mac
版本中,它位于
Android Studio->preferences->Build, Execution, Deployment->Compiler
发布于 2016-05-17 10:40:55
在Android Studios 2.1.1中,命令行选项位于"Build,Execution,Deployment">"Compiler“下
发布于 2018-07-14 06:20:23
我的解决方案是:
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
https://stackoverflow.com/questions/21674091
复制相似问题