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

  • 问题描述

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

       经检查,发现Jar内容还是旧版本的。

  Jar包管理工具为Gradle

  • 解决方案

  1、通过gradle命令更新Jar包,刷新依赖:gradle clean dependencies --refresh-dependencies ,然后,

    IDEA

 

  如果无效,请使用下一种方法

 

 

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

    IDEA

  如果还是有没有效果,请看下一种解决方案

  3、找到gradle的Jar包本地仓库,将下载的这个Jar包版本全部删除,重新下载。

  本地仓库路径,先确认你使用的是iDEA自带的gradle还是你自己的

       IDEA

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

 

IDEA

 

转载于:https://www.cnblogs.com/liuyp-ken/p/10905733.html

你可能感兴趣的:(IDEA "Library source does not match the bytecode for class"问题)