Unity 5 and Android Studio

Hi Guys.

Could someone please enlighten me on how to heck do export a project from Unity to Android Studio.

I have tried the export to Google project but to no luck.

I’m using Unity 5. Any simple steps would be appreciated. Please help

  1. build android project from unity
    a. File → Build Settings->Android
    b. Enable option for Google Android Project
    c. Build (You must correctly download set android sdk path )
    d. the directory should contain
  2. Open Android Studio
    a. import project (Eclipse ADT, Gradle ,etc)
    b. allow all options
    c. you should import the project in /SoruceProject/…
    If you use any third party dll plugin, you must use shared object version of them
    Unity - Manual: Create and use plug-ins in Android
    d. just build & run
    e. if you want sign the apk, change build.gradle as
    Sign your app  |  Android Studio  |  Android Developers
3 Likes

Hi chenyuchih!

I followed every step you explain … but when I open the project with Android Studio, the Gradle file is empty and can not run the project. You tell me if there is any extra step that you forgot?

@enriqueflores
Sorry for late response. Maybe you have solved this.
Do you import which directory with android studio?
Here I use the direcotry specified in step 1. (You should see AndroidManifest.xml after step 1 complete)
And the import result should like this

Done. @chenyuchih I made a mistake when I open the project using “open project” instead of “import” option. thanks!!..