生成/运行Android应用程序时出错:任务';的执行失败:app:compilededvdebugjavawithjavac';

生成/运行Android应用程序时出错:任务';的执行失败:app:compilededvdebugjavawithjavac';,java,android,android-studio,javac,Java,Android,Android Studio,Javac,在我将Dagger应用到我的项目和其他一些小类中以使我的应用程序与外部服务器交互之前,我的应用程序一直工作得很好 现在我什么都做不了。我在安卓Studio 2.0和Ubuntu 15.04上工作。我不知道是什么导致了这个问题,所以请随便问你想看什么 这是我从Gradle控制台得到的: An exception has occurred in the compiler (1.8.0_77). Please file a bug against the Java compiler via the J

在我将Dagger应用到我的项目和其他一些小类中以使我的应用程序与外部服务器交互之前,我的应用程序一直工作得很好

现在我什么都做不了。我在安卓Studio 2.0和Ubuntu 15.04上工作。我不知道是什么导致了这个问题,所以请随便问你想看什么

这是我从Gradle控制台得到的:

An exception has occurred in the compiler (1.8.0_77). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDevDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Messages:
Error:Execution failed for task ':app:compileDevDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

请参阅已经尝试过的设置JAVA_HOME:echo$JAVA_HOME/usr/lib/jvm/JAVA-8-oracle。这个变量在哪里使用?