How to write code for Android Plugin

The IntelliJ Community Edition source code doesn't seem to include the Android plugin. How do I get the source code for the Android plugin. I want to access the APIs of the Android plugin like AndroidFacet and AndroidUtils in my plugin project. How can I go about doing this? I tried pulling code from https://android.googlesource.com/platform/tools/adt/idea/ and adding it to classpath but no luck so far.
Any help will be greatly appreciated.

Edit: The above might be confusing. What i really need is the JARs for the Android plugin so that I can add them to the ClassPath and access stuff  like AndroidFacet, etc.

Thanks in advance,

Nidal R

4 comments

The jars of the Android plugin are part of the IntelliJ IDEA Community Edition distribution ("plugins/android/lib" under the installation directory). To use them in your plugin, you need to add them to the classpath of the IntelliJ IDEA SDK, and also add this to your plugin.xml:

<depends>org.jetbrains.android</depends>

0

Thanks, but where do we find source code for Android plugin? It seems to be absent from <idea-src>/plugins directory.

0

After checking out the source code of IntelliJ IDEA Community Edition, run getPlugins.bat or getPlugins.sh from the root checkout directory to check out the source code of the Android plugin and the Android SDK base components.

0

Please sign in to leave a comment.