Idea download multiple plug-in projects can not start the solution

When I downloaded the mybatis plugin plugin today

There are many versions of the plugin, and then, seeing that the second one is more popular, I downloaded the second one, then restarted the idea and found that this plugin seems to cost money, then forget it, let's use the first one for free, just Downloaded the first one again, and restarted idea. Then. . . just exploded.


I felt flustered instantly, and finally solved it with the help of Baidu. .

First look at the above error message, it looks like the error message of jar package conflict at first glance, let's put it first, let's look at the log of idea: C:\Users\{username}\.IntelliJIdea2016.1\system\log\idea .log. Under this path, open idea.log. Find the error message just now:

  1. 2017-07-1117:22:48,947 [  22053]   INFO - ellij.project.impl.ProjectImpl - 23 project components initialized in 74 ms    
  2. 2017-07-1117:22:48,947 [  22053]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms    
  3. 2017-07-1117:23:07,331 [  40437]   INFO - roject.impl.ProjectManagerImpl - com.intellij.diagnostic.PluginException: com.seventh7.mybatis.setting.MybatisSetting cannot be cast to com.seventh7.mybatis.setting.MybatisSetting [Plugin: com.seventh7.plugin.mybatis]    
  4. com.intellij.ide.plugins.PluginManager$StartupAbortedException: com.intellij.diagnostic.PluginException: com.seventh7.mybatis.setting.MybatisSetting cannot be cast to com.seventh7.mybatis.setting.MybatisSetting [Plugin: com.seventh7.plugin.mybatis]  
  5.     at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:249)  
  6.     at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:43)  
  7.     at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:519)  
  8.     at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:125)  
  9.     at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:109)  
  10.     at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:96)  
  11.     at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:287)  
  12.     at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:222)  
  13.     at com.intellij.openapi.project.impl.ProjectManagerImpl.d(ProjectManagerImpl.java:459)  
  14.     at com.intellij.openapi.project.impl.ProjectManagerImpl.access$100(ProjectManagerImpl.java:60)  
  15.     at com.intellij.openapi.project.impl.ProjectManagerImpl$2.compute(ProjectManagerImpl.java:406)  
  16.     at com.intellij.openapi.project.impl.ProjectManagerImpl$2.compute(ProjectManagerImpl.java:403)  
  17.     at com.intellij.openapi.progress.Task$WithResult.run(Task.java:307)  
  18.     at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:710)  
  19.     at com.intellij.openapi.progress.impl.CoreProgressManager$11.run(CoreProgressManager.java:423)  
  20.     at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)  
  21.     at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)  
  22.     at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)  
  23.     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)  
  24.     at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)  
  25.     at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:572)  
  26.     at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)  
  27.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  
  28.     at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
  29.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
  30.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
  31.     at java.lang.Thread.run(Thread.java:745)  
  32. Caused by: com.intellij.diagnostic.PluginException: com.seventh7.mybatis.setting.MybatisSetting cannot be cast to com.seventh7.mybatis.setting.MybatisSetting [Plugin: com.seventh7.plugin.mybatis]  
  33.     ... 27 more  
  34. Caused by: java.lang.ClassCastException: com.seventh7.mybatis.setting.MybatisSetting cannot be cast to com.seventh7.mybatis.setting.MybatisSetting  
  35.     at com.seventh7.mybatis.setting.MybatisSetting.getInstance(MybatisSetting.java:56)  
  36.     at com.seventh7.mybatis.ref.CmProject.initComponent(CmProject.java:59)  
  37.     at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501)  
  38.     ... 24 more  


The last paragraph seems to be similar to the error reported when the idea starts. It should be the jar package conflict, but what is the name of the jar package and where is it? This is a problem. It is difficult to find files in Windows.

So, I downloaded a Everything (this tool can check any file anywhere on the computer in seconds, which can be called a local file search artifact, download address: http://www.voidtools.com/ ). I randomly searched for mybatis, and then sorted it by time, and it seemed that I found it.


It should be that these two jars conflict, so delete the charged one. Then restart idea. Perfect solution~




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326225156&siteId=291194637