java.lang.ClassNotFoundException: org.jetbrains.android.facet.AndroidFacet

Answered

I have cloned gradle-based plugin repository and moved my plugin files into it (https://github.com/raydenvoldeskine/clear-dependencies-plugin-kt)

But when I run it I get the following exception: 

Caused by: java.lang.ClassNotFoundException: org.jetbrains.android.facet.AndroidFacet

I have checked and Android libraries seem to be included in dependencies. 

2 comments
Comment actions Permalink

Is that exception thrown in the runtime? As I see, you have not specified the following dependency in your plugin.xml file:

com.intellij.modules.androidstudio

Please follow the Android Studio Plugin Development article.

1
Comment actions Permalink

Yes it was at runtime. Now it looks like plugin setup is done in two places - xml and .kt file, it was misguiding. I have extended XML and it works now. thanks

0

Please sign in to leave a comment.