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

 

相關文章
相關標籤/搜索