我是程序员;您好程先生;叫我序员就好了首页投稿(暂停使用,暂停投稿)

Solutions to cannot resolve XXX

2016-07-27  本文已影响0人  Misa527528

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 .

上一篇下一篇

猜你喜欢

热点阅读