PluginClassLoader - ClassNotFoundException after moving class to another package.

Answered

Assume my package name is com.name.app

I have a class ApiHelper which has a ResponseHandler interface. Another class, ButtonActionHandler (extends AnAction) implements ResponseHandler from ApiHelper.

Everything works fine at this point. But if I move ApiHelper to com.name.app.helpers package I get NoClassDefFoundError &  PluginClassLoader - ClassNotFoundException.

 

Any idea why this is happening after moving file to another package?

0
2 comments

Did you update plugin.xml? Please share a reproducible test case.

0
Avatar
Permanently deleted user

Couldn't reproduce the issue on a new project so I just Invalidated cache and restarted intellij and its working. :D

0

Please sign in to leave a comment.