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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Android export: minimum API level?

Discussion in 'Android' started by graphic_dude, Nov 21, 2012.

  1. graphic_dude

    graphic_dude

    Joined:
    Apr 26, 2012
    Posts:
    12
    Hi,

    in the build settings for Android, I'm wondering if the available "minimum API level" depends on the Unity build or if it depends on the version of the installed Android SDK?

    I ask for that because I use the latest Unity build and the latest Android SDK (4.2), and I can't export my Unity project to Android 4.2 (actually, I can export from Android 2.0 to Android 4.1, but no 4.2).

    If it depends on Unity, do you know when Unity will be able to export projects to Android 4.2?

    Thank you!
     
  2. DamianGto

    DamianGto

    Joined:
    Apr 20, 2011
    Posts:
    159
    Minimum has nothing to do with that. Its what API level you minimum need on the phone.
    The question is why you use 4.2?
    Very few phone use Jelly bean.
     
  3. graphic_dude

    graphic_dude

    Joined:
    Apr 26, 2012
    Posts:
    12
    Thank you for your answer.
    Actually, I know that only few devices use Jelly Bean, and I didn't mean to export my Unity project for Android 4.2 only. As a matter of fact, I was just wondering if it was normal that I couldn't export to Android 4.2 using the latest Unity and Android SDK...
     
  4. keithsoulasa

    keithsoulasa

    Joined:
    Feb 15, 2012
    Posts:
    2,126
    I don't think it matters, I set it to 2.2 or 2.3, just to filter out devices that can't run it . You should be good at 2.3
     
  5. graphic_dude

    graphic_dude

    Joined:
    Apr 26, 2012
    Posts:
    12
    Ok. Thank you for your answers.
     
  6. Miyavi

    Miyavi

    Joined:
    Mar 10, 2012
    Posts:
    58
    It seems I can't build for 2.2... I don't know why, but it says I have to build for at least API level 14, which is 4.0.
    I've read some people saying that this happens after Unity 3.2, so which Unity version are you using?
     
  7. BrUnO-XaVIeR

    BrUnO-XaVIeR

    Joined:
    Dec 6, 2010
    Posts:
    1,687
    You that SDK version installed to build for it.
     
  8. Miyavi

    Miyavi

    Joined:
    Mar 10, 2012
    Posts:
    58
    Okay, nevermind.

    I just realised that you can select in player settings the version of android you want to build for.
     
  9. Aadamgibson

    Aadamgibson

    Joined:
    Mar 30, 2012
    Posts:
    24
  10. Alexei_UA

    Alexei_UA

    Joined:
    Dec 26, 2016
    Posts:
    6
    How to decide which API level to chose when I export my game?
    Higher = better? Or I always have to select the lowest level for maximum compatibility?
    I do not understand the difference between them.
     
  11. e_v

    e_v

    Joined:
    Jul 14, 2016
    Posts:
    28
    I've read many discussions about minimum API level and I still don't understand how to determine the right one for my game. I assume the lower it's set, the more devices it will be available to on Google Play. But if my game chokes on older devices, or doesn't work at all because of some code that only works for later APIs, not good. And does setting a lower API reduce how well my game would perform on devices with a higher/later API? I know I can test different situations using an emulator, but only running on an actual device would show true performance. So if the game runs fine on my wife's phone, which is the oldest Android device I have access to, do I just set the minimum API based on that, because it's the only thing I can be fairly certain of? Can anyone shed some light on the process for determining the best setting for Minimum API Level?
     
  12. leftler

    leftler

    Joined:
    Feb 4, 2016
    Posts:
    9
    I came here to ask the exact same question e_v, I hope we get an answer.
     
  13. e_v

    e_v

    Joined:
    Jul 14, 2016
    Posts:
    28
    @leftler please let me know if you gain any insights.