Source code does not match the bytecode 问题 请教

代码修改之后debug 出现Source code does not match the bytecode
git add之后就没问题了 搞了很久都没弄明白 版本是:2021.1.2
是我改了什么东西了吗

你不用debug模式应该就不会有这种提示吧,这种提示解决方式很多。至于为什么有这种提示,可能编辑器调试编译时检测到有做版本修改,要重新构建项目吧

重新debug restart一下/Build Project

试了 重新build了 idea也重启了 还是不行。就git add之后就可以了