Cannot find module with ModuleManager.findModuleByName()

Answered

I'm trying to get the module with packageName using 

ModuleManager.getInstance(project).findModuleByName(packageName)   

within a multi-module project but it's not working correctly.

However, I am able to get all modules from 

ModuleManager.getInstance(project).modules

and they are all returning correctly. I've also built my project already and read packageName successfully using facet and AndroidModel. 

Does anyone know why it's not working when trying to get a single module with package name?

0
1 comment

Which IDE and which version are you using, Mia J?

0

Please sign in to leave a comment.