解决idea报错找不到或无法加载主类* 通过清理缓存解决存在的问题 File—>Invalidate Caches—>勾选Clear downloaded shared indexes —>点击Invalidate and Restart 如图所示,即可解决问题