項目更新代碼后無法運(yùn)行,會報如下錯誤:
org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
at com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:92)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutorManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
clean叽躯,rebuild 都試過诞丽,找了半天沒找到問題在哪。
后來才發(fā)現(xiàn),注意一下報錯的第一行有一句:
see the compiler error output for details. 查看編譯器的錯誤輸出詳情
原來 build - Java Compiler 里已經(jīng)告訴我們具體出錯的位置了