org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compil
解决方案
我们可以使用gradlew命令在命令行中来单独执行报错的那个任务,并打印出具体错误,命令如下:
gradlew tasknmae --stacktrace --info
那么在本例中,报错的taskName为compileDebugJavaWithJavac,则敲入命令
gradlew compileDebugJavaWithJavac --stacktrace --info
如果遇到 'gradlew' 不是内部或外部命令,也不是可运行的程序 的问题,解决方案
运行后就会看到具体错误,如下: