Need howto on how to develop Android Studio Plugin

Can someone please help me on the following matter:
I want to develop a pretty simple plugin for Android Studio. From what I see I have to do so with Intellij since Android Studio doesn't allow for this type of target.

I created a new Intellij Plugin project in Intellij 14.0.2, add a simple action to the Android tools menu and created a launch configuration.
I'm using Android Studio 1.0.2 and Intellij 14.0.2 which also has the Android Dev plugin installed.

- When I set the Project SDK to the location of Android Studio it launches some "Intellij 13.1 Community Edition" which then complains it doesn't have the Android plugin installed (I don't remember ever installing this version, I can't find it on my system).
- When I use my Intellij SDK it launches another instance which then complains it's not registered.

Can someone please help me getting started here?

Thanks,
Mat

4 comments
Comment actions Permalink

Hi Matthias,

Android Studio not starting properly when used as a plugin development target is a bug; it wil be fixed in IntelliJ IDEA 14.1.

The prompt for license when you start IntelliJ IDEA Ultimate as a plugin development target is normal. Just enter the same license that you use for your main IntelliJ IDEA instance.

0
Comment actions Permalink

Hi Dmitry,

thanks for the quick reply. Do you have any hint on when an 14.1 EAP will be available where this bug would be fixed?
I guess in the meantime I'd have to use 13.x.

Thanks,
Mat

0
Comment actions Permalink

The EAP for 14.1 will start some time in February as far as I know.

Downgrading to 13.1 won't help; there is no existing version of IntelliJ that wil correctly configure Android Studio as a plugin development target. However, you should be able to configure it manually, by adding the following line to the VM options of the run configuration:

-Didea.platform.prefix=AndroidStudio

0
Comment actions Permalink

Thanks, that worked.

0

Please sign in to leave a comment.