Build unity apk with Android Studio

Hi everyone!
I have a problem that i hope anyone can help me to solve it.
I try to build an apk with Android Studio from Google project generated in Unity.

My framework is:

  • Unity 4.5.3
  • Android Studio Beta (0.8.14)
  • Android API 19 (java 1.8.0_05)

Steps:

  1. Export the Google project with Unity
  2. Open the Google project with Android Studio
  3. Link sdk in project structure and set compiler output
  4. Generate signed apk
  5. Install generated apk in my galaxy sIII
  6. Run generated apk in my galaxy sIII
  7. Crash!!

Anyone knows whats going on? Why crash the app?

Thanks in advance!

Nobody has same problem?
:frowning:

Make a development version and read the logcat, then post the chrash you are experiencing.
Without the stacktrace or error, only people with the exact same situation might be able to help.
With the exact error, others (or even a quick search) might get you to the next step.

1 Like

Why are you using Android Studio to build Unity APK???

Because I want modify the manifest and add activities in the next steps. First I try to build the unity apk without any modifications, only export google project and build apk with Android Studio.

no logcat log or stacktrace then?

1 Like