当我在Android Studio中“运行”我的项目时,在“消息”窗口中,我得到:
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.
它显示> Compilation failed; see the compiler error output for details.
,那么“编译器错误输出”在哪里?和/或如何使用--stacktrace
选项运行?
发布于 2017-12-28 18:04:41
对于Android Studio3.1,在Build窗口中选择Build one下面的图标。
在Android Studio 3.3 (可能是3.2.1)中,图标发生了变化,尽管位置是相同的:
当您运行构建操作(例如,从build菜单)时,build窗口应该会打开。如果你没有看到它,你可以尝试窗口底部的" Build“按钮(在上面的截图中也可以看到),或者通过菜单查看→工具Windows→Build。
发布于 2013-05-19 19:46:12
您使用的是Windows吗?启动cmd,找到你的项目文件夹并运行"gradlew build“。这应该已经为您提供了比IDE更多的输出,您还可以在那里使用--info、--stacktrace和--debug。
发布于 2018-07-07 21:16:59
您还可以通过单击切换按钮在Build窗口中查看错误。
https://stackoverflow.com/questions/16633956
复制相似问题