1. 問題描述:電腦重新開機後打開項目,報錯了,core項目找不到api項目的依賴了。
這2個檔案是一個大項目的,按理是可以引入的,但是就報錯。
解決辦法:
idea右下角會提示,Download pre-built shared indexes Pre-built maven library shared indexes
點選download,就可以了。
具體:這個idea為了能夠更快的使用共享索引,會下載下傳JDK和Maven庫的共享索引,給你的的項目代碼建構共享索引。要關掉的也可以,File--》 Settings--》Tools --》 Shared Indexes,改成: Ask before download, 或者 Don't download, use local indexes 然後再: File --》Invalidate Caches--》Clear downloaded shared indexes--》Invalidate and Restart.
2. 如果提示log符号不對,參考文章:
https://blog.csdn.net/yang1393214887/article/details/103508857
如果還報錯,就重新開機idea,還報錯重新開機電腦,打開idea會提示,enable Annotion。點選一下就好了。
IDEA運作報Command line is too long的解決辦法
https://blog.csdn.net/dengnanhua/article/details/105931618