项目中报了一个错误:
Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; see the compiler error output for details.
搜了半天说要找Gradle Console,在as 找了半天硬是找不到。后来发现下面这2种操作可以:
方法1:
View ->Tool Windows -> Gradle, 任意选择一个Task,双击执行即可。
方法2:命令行编译项目(替代办法)
Window 系统下:
项目根目录下输入命令:
gradlew.bat assembleDebug --debug