Reputation: 6209
So, I've read: How to write a plugin for Android Studio? as well as the documentation for writing plugins for IntelliJ (although they seem to be quite out of date), and I'm still a little lost.
Basically, what I'm trying to do is to get the following plugin source: https://github.com/winterDroid/android-drawable-importer-intellij-plugin to compile, so I can make a small addition to it. I've downloaded IntelliJ community edition, and I'm able to compile small IntelliJ plugins if I follow the above documentation, but when I try to compile the source for an Android Studio plugin, it tells me it can't find the import org.jetbrains.android.facet.AndroidFacet;
My thinking is that I've probably missed an SDK somewhere, but, for the life of me, I can't determine which additional SDK/library I need to import to get the Android-specific suite of classes.
Could someone guide me in the right direction to get a plugin to build to use Android Studio? If it packages it as a zip file (rather than launching Android Studio with the plugin embedded), that's fine - I can manually copy over my .zip files to my Android Studio installation to test.
Upvotes: 0
Views: 1687
Reputation: 97138
You need to add plugins/android/lib/android.jar to the classpath of your IntelliJ IDEA SDK.
Upvotes: 2