in Android Studio go to:
settings -> Experimental -> (check mark) Configure all Gradle tasks during Gradle Sync
enter image description here
Then do a Gradle Sync and all the folders should be created in the Gradle tab on the right