Solutions to cannot resolve XXX

From my experiences, just sophomore's , there are there possibilities to this problem as follows.

1.Lack of some dependencies.
2.Dependencies conflict
3.Haven't add jar packages to classPath

Solution to possibility 1####

In this case, your IDE may prompt you to import some packages, then you just do it as the tip shows.

![TCZPSFCA6~`N[_7S2]ODM7.png

Apart from this, you may set your IDE auto-import, the foundation could be easily found in you setting, or you can Google it.


Solution to possibility 2###

If not the above situation, then mostly could be this case, dependencies or jar packages conflict.
  For this problem, check your pom.xml or use maven's command line(which i've forget hahaha, Google yourself) But if your IDE is IntelliJ IDEA, search dependency tree directly(Ctrl+Alt+Shift+U), which show you the confilct with a red line, just right click, then ** Exclude**. MyEclipse has similar foundatin too, but sorry for my barely-use of MyEclipse.

robin_van_persie_wallpaper_by_jlang17x-d6h14yo.png

Solution to possibility 3####

Like i said, it could happend that you hadn't have added jar packages to classPath, then it may not be a problem, just do it, or Google .

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容