gradlew compileDebug --stacktrace -info
在命令行中進入項目的根目錄,或者可以在Android studio的Terminal中直接操作也可以,然後敲入一個命令:
gradlew compileDebug --stacktrace -info
或者:
gradlew compileDebug --stacktrace -debug
我直接用了這個命令,這個顯示的錯誤信息最詳細,建議你直接用這個,
gradlew compileDebugSources --stacktrace -info