Unity exporting an incomplete Android Studio project

I am trying to export my unity project to Android Studio. After I click export, it runs and I get a Build Succeeded message on the Console. However, when I try to open the project in Android Studio it is incomplete. It’s missing the “app” folder and many of the gradle files, so it’s not really an Android Studio project. I have attached an image of my build settings. Not sure why/how Unity would create an incomplete project.

The main problem is not the missing app folder, but that many SDK classes are not available with such configuration.

In the unique build.gradle (at the root folder of the project) moving the lines starting with “apply plugin: …” at the beginning of the file does the trick for us. After the move, don’t forget to refresh your gradle configuration.