Here's a solution that worked for me:
1- Close your current project in Android Studio.
2- Open the android
directory of your project directly in Android Studio as a standalone project.
By doing this, the android
directory is automatically opened in Open for Editing mode.
Note: The commonly suggested solution of creating a [project_name]_android.iml
file did not work in my case.