The reason it's difficult to add your own project template to Android Studio is that until now Android Studio is programmed (and hard coded) ![]() This second approach of course does not answer your question, and this is why I present to you the 3rd approach.ģrd approach: Build your own plugin for Android Studio How you could do that, because you may want to keep your standard way of creating new projects intact. Modifying these two templates may or may not solve your problem, and I am not going to describe in depth plugins/android/lib/templates/gradle-projects/NewAndroidModule You can customize the files within, but it will affect ALL the projects that you create in Android Studio. This one instead is the template that is used for each module you use in your application, such as the "app" moudle, a library module, and few other. This is the template that is used for most (or all) of the Android projects. plugins/android/lib/templates/gradle-projects/NewAndroidProject You can put it under version control and the re-use a specifc version of it.įrom Android Studio you can import this by using: File-> New-> Import Project.įile-> New-> Project From Version ControlĢnd approach: Modifty the NewAndroidProject template and / or templates of modules you want to use. You can create this project that will serve as base for your other projects. ![]() Some of the complexity related to creating your own Android project template.ġst approach: Create a template app project that already has two modules. ![]() So I'll outline a couple of possible alternative solutions to your problem, and then I'll explain Would have to read through the source code of Android Studio and/or IntelliJ Community Edition. To understand the complexity behind the task you want to accomplish you
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |