Android Template Plugin Sample
This is not an official sample. The API may break at any point until Google officially announces it.
As of Android Studio 4.1, the templates API was completely overhauled to use Intellij plugin extension point. This project is to showcase how to add templates by using the extension point.
Star the issue if you are interested in using the API in production.
Steps to install the plugin
- Build the plugin
$ ./gradlew buildPlugin
- Install the plugin
- Launch Android Studio 4.1 or above
File -> Settings
Pluginsand click the gear icon at the top of the dialog
Install Plugin from Disk…
- Select the generated jar under
$PROJECT_DIR/build/lib/created in the previous step
- Restart Android Studio
File -> New -> New Project…you should be able to see a template from your plugin