原文: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 ,然后, 如果无效,请使用下一种方法 ...

2019-05-22 14:33 1 9151 推荐指数:

查看详情

library source does not match the bytecode for class

IDEA中阅读代码时,时常会跟踪到jar包源码层面,会点击Download Sources,源码包就会被下载到idea中 但是当pom.xml引入了新的版本,此时,再次阅读源码时,就会提示”library source does not match the bytecode ...

Fri Nov 27 01:34:00 CST 2020 1 2210
IDEA查看源码时提示:Library source does not match the bytecode for class问题分析

通过Maven查看依赖的源码时,通常是Maven自动下载JAR包附属的source包,但是会出现一个问题,由于使用lombok插件会造成编写的Java文件和编译后的class上有差别,所以IDEA打开时看到的是Maven打包时用的源码,而IDEA会自动匹配与.class反编译后的源代码,造成不匹配 ...

Thu Nov 23 16:20:00 CST 2017 1 13383
Library source does not match the bytecode for class 最佳解决方案

首先分析问题 打完的jar包,编译的后class跟java文件不一致,原因是重新打包后还是引用之前的java文件,不能重新加载新生成的jar。 解决方案 方案一 IDEA 工具,点击File 》invalidate caches /restart,重启IDEA看是否解决问题 ...

Sat May 30 07:44:00 CST 2020 1 2652
DEBUG时候source does not match the bytecode

出现这个提示的话,在class文件的首行一般会有decompiled.class file bytecode version:52.0(java 6)这句提示。 先检查一下maven的jar包里面,如果没有问题,就点击该提示的download source。可以消除这句source does ...

Sat Jan 18 18:43:00 CST 2020 0 892
出现警告:source code does not match the bytecode

今天在使用android studio 进行 debug 时跳出来一个警告,“source code does not match the bytecode” 在每一步 debug 后都会弹出一下 (上网搜到的答案)源代码添加代码后没有重新编译,程序关闭重新 debug 就好了 ...

Fri Dec 17 18:02:00 CST 2021 0 1059
idea 使用debug模式时出现错误“字节码与代码不匹配”(source does not match the bytecode

看到这个提示我以为是因为我之前移动了项目路径的操作导致的,重新导入后仍行不通,经过一系列的搜索,发现原来是该项目有两个模块,里面存在两个相同的类文件名于是debug搞错了,具体为什么会搞错模块我也不清楚。但解决办法是:File-》settings勾选:show alternative source ...

Tue Dec 28 02:01:00 CST 2021 0 2028
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM