最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Android Studio module creation via moustache templates doesnt work - Stack Overflow

programmeradmin2浏览0评论

my anisations current android project is mostly a monolithic "monster". my developer team are creating feature modules and refactoring the monothlith piece meal. I am trying to save time by creating an automatic process for creating the required android module structure for each feature

i have used pure kotlin, clikt, and moustache templates to create a small application that can accept a feature name and create the required folder structure with a build.gradle.kts file etc, including the src/main/java/aaaa/bbb/ccc package stucture.

the issue i am having is android studio doesnt accept these "manually" created modules as android modules, as shown here

the assets module was created in Android Studio, the wham module was created via my external application. The manually created folders dont have the "blue dot" denoting they are android modules. is there anyway i can add this functionality to my automation?

is it possible to create android studio modules "outside" of android studio?

the version of android studio i am using is

Android Studio Ladybug Feature Drop | 2024.2.2
Build #AI-242.23726.103.2422.12816248, built on December 18, 2024
Runtime version: 21.0.4+-12422083-b607.1 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.2
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 16
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
  i18n.locale=
发布评论

评论列表(0)

  1. 暂无评论