This issue also may happen when you just installed new Android studio and importing some project, in the new Android studio only the latest sdk is downloaded(for example currently the latest is 30) and if your project target sdk
is 29 you will not see your module
in run configuring
dialog.
So download the sdk that your app is targeted, then run Sync project with gradle files
.