• 问题描述

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

  Jar包管理工具为Gradle

  • 解决方案

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

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

 

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

 

 

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

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

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

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

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

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

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

 

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

 

相关文章:

  • 2021-09-24
  • 2021-09-27
  • 2021-03-31
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2021-04-11
  • 2021-08-26
  • 2022-12-23
  • 2021-08-24
  • 2021-09-10
相关资源
相似解决方案