Search Unity

Failed getting available Android API levels. Make sure your android sdk tools version is 25 or highe

Discussion in 'Editor & General Support' started by SuperDuperPooperGames, Jan 27, 2019.

  1. SuperDuperPooperGames

    SuperDuperPooperGames

    Joined:
    Sep 28, 2017
    Posts:
    47
    .
     
    Last edited: Jan 3, 2020
  2. herb_nice

    herb_nice

    Joined:
    May 4, 2017
    Posts:
    170
    I have had similar experiences with Unity 2018.3.2f1 and 2018.3.3f1, but not with Unity 2018.2.20f1
     
  3. Alaa-Atef

    Alaa-Atef

    Joined:
    Feb 12, 2017
    Posts:
    1
    For anyone who still have this problem , you have to change your api levels , simply go to player settings and change the target android to be kitkat or higher , this worked for me after 2 days of confusion.
     
  4. Unity_Ride

    Unity_Ride

    Joined:
    Oct 4, 2017
    Posts:
    5
    Failed getting available Android API levels. Make sure your android sdk tools version is 25 or higher and you have internet connection.
    System.Threading.ThreadHelper:ThreadStart()

    Anybody have solution of this problem please..
    Thank you.
     
    adityathomas749 likes this.
  5. ghedo

    ghedo

    Joined:
    Jan 26, 2019
    Posts:
    4
    Where is the Android manifest file?
     
  6. Unity_Ride

    Unity_Ride

    Joined:
    Oct 4, 2017
    Posts:
    5
    i am using facebook AudienceNetwork,
    and Android manifest file is on this folder:= AudienceNetwork/Plugins/Android/AndroidManifest
     
  7. BarmaJ

    BarmaJ

    Joined:
    Aug 11, 2019
    Posts:
    1
    I use Unity 2018.2.21f1. the results of build apk can not open on mobile ..
    what is the cause. please the solution. thanks
     
  8. wechat_os_Qy00Ucf9AazrQ3c29B_s7Nv7o

    wechat_os_Qy00Ucf9AazrQ3c29B_s7Nv7o

    Joined:
    Mar 27, 2020
    Posts:
    3
    I have the same problem with Version 2018.4.14f1, details are as below

    Failed getting available Android API levels. Make sure your android sdk tools version is 25 or higher and you have internet connection.
    System.Threading.ThreadHelper:ThreadStart()
     
  9. wechat_os_Qy00Ucf9AazrQ3c29B_s7Nv7o

    wechat_os_Qy00Ucf9AazrQ3c29B_s7Nv7o

    Joined:
    Mar 27, 2020
    Posts:
    3
    Failed getting available Android API levels. Make sure your android sdk tools version is 25 or higher and you have internet connection.
    System.Threading.ThreadHelper:ThreadStart()

    with version unity 2018.4.14f1
     
  10. p0w1nd

    p0w1nd

    Joined:
    Oct 28, 2015
    Posts:
    140
    I see this same warning on Unity Editor 2018.4.21f1

    But I can build APK without any problem.
     
    Last edited: Apr 30, 2020
  11. breban1

    breban1

    Joined:
    Jun 7, 2016
    Posts:
    194
    I am receiving this same warning when I go to build settings before a build. I believe it happens while it is trying to retrieve the API levels within the android build settings.

    It ends up building, so that's good.
     
  12. mctenny

    mctenny

    Joined:
    Mar 22, 2019
    Posts:
    3
    Same here, even trying 2018.4.28f1, sometimes API 29 & 30 can be detected, but sometimes not. You will need to quit/restart Unity dozens of times until API 29 can be detected.
    And you are were NOT good, bcos API 28 (max) can be built, and it's fine for testing. But you won't be able to submit to Google Play, bcos API 29 is the minimal requiremet.
     
  13. mctenny

    mctenny

    Joined:
    Mar 22, 2019
    Posts:
    3
    I believe 2019.4.13f1 has patched this issue "Android: Detect new format of SDK's command-line tools (1256617)", but why not retrofit to 2018.4.28f1?
     
  14. chcsoumya

    chcsoumya

    Joined:
    Oct 12, 2020
    Posts:
    1
    I think I found a solution, worked for me.
    In Player settings:
    - Set minimum API level as required
    - Set Target API level to Automatic (If your phone is connected)
    ---------------------------------------------------------------------
    If still not working:
    - Keep Player -> Other settings open in Editor
    - Keep Editor focus on Player->Other settings
    - Restart Unity
     
  15. Don_TACO

    Don_TACO

    Joined:
    Apr 19, 2020
    Posts:
    1
    lol, I had the same problem while looking at this post. My problem was that I had different versions of the game. Let me explain: file → buildsettings → pleyersettings → version: 0.1
    file → buildsettings → pleyersettings →othersettings →identification →version:0.0
    I just put them the same and it worked for me. (I also connect my cell phone with the unityRemote 5 open, before building the APK, I don't know if it has anything to do with it). and think that I download all the API's in my android studio LMAO
     
  16. ltsc

    ltsc

    Joined:
    Mar 9, 2020
    Posts:
    4
    it is another weird unity bug. i switched platfrom to ios and then switched back to android. yep it disappeared o_O
     
    adrianfondeurfdz likes this.
  17. mwasim1

    mwasim1

    Joined:
    Jul 3, 2020
    Posts:
    1
    Solved this issue myself.

    In my case the cause of issue was different.

    I've installed Android Studio and my Unity Editor uses the same SDK path as being used by Android Studio.

    When I installed the latest Command Line Tools this error started appearing. After trying other possible solutions, when I uninstalled the latest command line tools and installed the previous version. The issue was fixed!
     
  18. nasrullah378

    nasrullah378

    Joined:
    Jul 19, 2018
    Posts:
    1
    Solved for me,
    below the minimum and target API Level, there is option API COMPATIBILITY LEVEL, change this option to .Netframework and then change it to back where it was.