How to create android module programmatically?

I have tried `ModuleManager.getInstance(currentPrj).newModule( MODULE_NAME, EmptyModuleType.EMPTY_MODULE);`. i found module created in
Project Structure and there is nothing in project directory.
What's more, i tried to create break points in
NewProjectImportGradleSyncListener.class but i did not find how android module being created
and when the file of module(especially .gradle file) bing added to the module.
Is there any API for creating an android module programmatically?

0

Please sign in to leave a comment.