错误原文:
What went wrong:
Execution failed for task ‘:app:compileDebugJavaWithJavac’.
Compilation failed; see the compiler error output for details.
经常运行新项目时会遇到此问题,编译器没有提供更多的内容,可以在AndroidStudio的Terminal面板中依次输入一下内容以查询更多错误详细信息
gradlew compileDebug --stacktrace
gradlew compileDebug --stacktrace -info或gradlew compileDebug --stacktrace -debug