Module names now contain the project name


I'm trying to upgrade my plugin for Android Studio 4.0, and I used to do
Which would return e.g. "app" but now returns "".

Can you confirm this is correct? I can't see anything in the release notes back to 2019.3, and I can't find any mention of changing the project structure in the Android Studio release notes either, other than that they updated to 2020.

If that's correct then I will use
    ModuleManager.getInstance(project).getModules()[1].replace(projectName + ".","");
but I would like to confirm that with you before releasing.

Thanks very much

Comment actions Permalink

Any confirmation/feedback on this is appreciated 

Comment actions Permalink

I still require help/confirmation with this

Comment actions Permalink

Sorry for delay, now naming of modules follows Gradle's model of sub project (`gradle projects` command output).


Please sign in to leave a comment.