IDEA "Library source does not match the bytecode for class"问题

  • 问题描述

  Jar包更新后,报错信息:"Library source does not match the bytecode for class"

       经检查,发现Jar内容仍是旧版本的。缓存

  Jar包管理工具为Gradle
工具

  • 解决方案

  一、经过gradle命令更新Jar包,刷新依赖:gradle clean dependencies --refresh-dependencies ,而后,
gradle

    

 

  若是无效,请使用下一种方法spa

 

 

  二、File-->Invalidate Caches /Restart 重启清理编译器缓存
code

    

  若是仍是有没有效果,请看下一种解决方案blog

  三、找到gradle的Jar包本地仓库,将下载的这个Jar包版本所有删除,从新下载。
ci

  本地仓库路径,先确认你使用的是iDEA自带的gradle仍是你本身的
编译器

      

  直接进入文件夹E:\repo\.gradle\caches\modules-2\files-2.1it

 

相关文章
相关标签/搜索