First solution.

  1. Close IDE
  2. Remove .idea folder and all.iml files in your project.
  3. Restart the IDE and re-import your project.

Second solution.

  1. Open your module.iml file in your project.
  2. fixed the following this.