'Getting module not specified error when try to set the run/debug configuration

I am opening a cordova project in android studio. After gradle sync completed, it doesn't show any run/debug configuration and when I try to add one, it shows no module in module list.

I already tried the suggested solution but none of them worked for me.

I adding screenshots for reference.

Run/Debug Configuration:

Run/Debug Configuration

Project Structure:

Project Structure

Let me know if more information is needed.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source