在android studio中执行任务失败

在android studio中执行任务失败,android,android-studio,build-error,Android,Android Studio,Build Error,有没有人面临过这种错误。我试过其他帖子的东西,但都没用 Error:Execution failed for task ':app:compileBetaConfigDebugJavaWithJavac'. > java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$MethodSymbol cannot be cast to javax.lang.model.element.TypeElement ndency cac

有没有人面临过这种错误。我试过其他帖子的东西,但都没用

Error:Execution failed for task ':app:compileBetaConfigDebugJavaWithJavac'.
> java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$MethodSymbol cannot be cast to javax.lang.model.element.TypeElement
 ndency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)</a></li>
<li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
错误:任务执行失败:app:compilebetaconfiggdebugjavawithjavac'。
>java.lang.ClassCastException:com.sun.tools.javac.code.Symbol$MethodSymbol不能强制转换为javax.lang.model.element.TypeElement
ndency缓存可能已损坏(这有时在网络连接超时后发生。)
  • 渐变生成进程(守护进程)的状态可能已损坏。停止所有Gradle守护进程可以解决此问题。停止渐变生成过程(需要重新启动)
  • 您的项目可能使用的第三方插件与项目中的其他插件或项目要求的Gradle版本不兼容。
  • 如果Gradle进程损坏,也可以尝试关闭IDE,然后关闭所有Java进程。
    帮帮我。提前谢谢

    注意:这是在我向我的项目添加改造后开始发生的。我有毕加索图书馆也从广场坐在我的格拉德尔依赖