Cannot find module with ModuleManager.findModuleByName()
已回答
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?
请先登录再写评论。
Which IDE and which version are you using, Mia J?