Open the gradle tool window, go to settings, enabl...
# getting-started
k
Open the gradle tool window, go to settings, enable "create directories for empty content roots automatically". Maybe you need to refresh the project after that.