Android编译错误

有时候编译看不到具体的错误原因,例如:

‘Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.’

可以通过下面查看编译信息:

gradlew compileDebugSource –stacktrace -info

点赞