Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Build unity apk with Android Studio

Discussion in 'Android' started by crazyPanic, Nov 17, 2014.

  1. crazyPanic

    crazyPanic

    Joined:
    Dec 5, 2013
    Posts:
    6
    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
    5) Run generated apk in my galaxy sIII
    6) Crash!!

    Anyone knows whats going on? Why crash the app?

    Thanks in advance!
     
  2. crazyPanic

    crazyPanic

    Joined:
    Dec 5, 2013
    Posts:
    6
    Nobody has same problem?
    :(
     
  3. Freezy

    Freezy

    Joined:
    Jul 15, 2012
    Posts:
    234
    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.
     
    Cogent likes this.
  4. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,797
    Why are you using Android Studio to build Unity APK???
     
  5. crazyPanic

    crazyPanic

    Joined:
    Dec 5, 2013
    Posts:
    6
    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.
     
  6. Freezy

    Freezy

    Joined:
    Jul 15, 2012
    Posts:
    234
    no logcat log or stacktrace then?
     
    Cogent likes this.