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

已回答

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. 

0

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

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

请先登录再写评论。