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

Issues while generating apk from android studio

Discussion in 'Android' started by Damodhar, Jan 12, 2018.

  1. Damodhar

    Damodhar

    Joined:
    Jul 30, 2015
    Posts:
    8
    Hi ,

    I am new to android studio.I have exported the unity project to android studio .Initially i have faced issues with sdk veriosns and all , now i have fixed them, but didnt find the option of building signed apk in build settings in android studio.Please help me in fixing this.I have attached the image of build options below.Please let me know how to create sign apk or unsigned apk.
    Regards,
    S.Damu93.
     

    Attached Files:

  2. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,165
    Build APK(s) is your option.
     
  3. Damodhar

    Damodhar

    Joined:
    Jul 30, 2015
    Posts:
    8
    Hi,

    But build apk option is not working, nothing is running on clicking that button in Android studio.
     
  4. turbolek

    turbolek

    Joined:
    Dec 30, 2016
    Posts:
    10
    Did you find a solution to this? I am having the same problem.

    I have exported the Unity project, imported it to Android Studio and followed this instructions:
    link

    A a result I got this log in Android Studio console:
    13:55:13: Executing task 'build'...
    Executing tasks: [build]
    13:55:14: Task execution finished 'build'.

    Execution time is suspiciously short and I can't find the apk file anywhere.

    I also tried Build > Build APK(s), but when I click it nothing happens
     
  5. turbolek

    turbolek

    Joined:
    Dec 30, 2016
    Posts:
    10
    I managed to figure it out.
    Turns out I was importing wrong directory to Android Studio.

    What I was doing (wrong):
    1. Export the Unity project into MyDirectory
    2. Import MyDirectory into Android studio
    What I should have been doing (right):
    1. Export the Unity project into MyDirectory
    2. Import MyProject, which is inside MyDirectory into Android studio
    Same issue on Stack Overflow