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

api 29

Discussion in 'Android' started by peterbrinson, Jul 24, 2020.

  1. peterbrinson

    peterbrinson

    Joined:
    Jul 1, 2013
    Posts:
    63
    Today the Google Play Console warned me about this when I was uploading my recent build.

    From August 2020, new apps must target at least Android 10 (API level 29).
    From November 2020, app updates must target Android 10 (API level 29).


    So in Unity Player Settings>Other Settings>Identification, I changed "Target API Level" to 29.

    When I build to Android, I get this warning:

    export.jpg
    Updating fails, and it tells me "Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed."

    So in Android Studio, it updated to version 4.0.
    Then I open up SDK Manager and see this:

    studio.jpg

    Doesn't it look like I have API Level 29?

    I've restarted the computer and tried a few times but I always get this result.

    Thank you.
     
    HeatWave_Games likes this.
  2. fujitsu03

    fujitsu03

    Joined:
    Sep 16, 2017
    Posts:
    1
    Just click on Use Highest Installed
    it worked for me
     
  3. peterbrinson

    peterbrinson

    Joined:
    Jul 1, 2013
    Posts:
    63
    You mean when you uploaded it to the Google Play Console it no longer gave you this warning?

    Code (CSharp):
    1. From August 2020, new apps must target at least Android 10 (API level 29).
    2. From November 2020, app updates must target Android 10 (API level 29).
    I can build from Unity using API 28, but I'm trying to prepare for this change it seems Google is warning us about now.
     
  4. peterbrinson

    peterbrinson

    Joined:
    Jul 1, 2013
    Posts:
    63
    Because I get the above warning after uploading.
     
  5. HectorOfPriamos

    HectorOfPriamos

    Joined:
    Jul 9, 2017
    Posts:
    15
    I have the same issue as well. When I click use highest button it chooses API 28 which doesn't solve the issue. According to the warning we won't be able to upload any AAB files to Google Play Store.
    I downloaded nearly all API's from SDK Manager but no way. If anyone knows any solution I appreciate it as well.
     
    peterbrinson likes this.
  6. peterbrinson

    peterbrinson

    Joined:
    Jul 1, 2013
    Posts:
    63
    Hector,
    What version of Unity are you using? I'm using 2019.3.0f1.
    I'm considering upgrading to see if that helps, but don't want to if it's not likely the issue.
     
  7. peterbrinson

    peterbrinson

    Joined:
    Jul 1, 2013
    Posts:
    63
    It looks like the solution is to update Unity. I went from 2019.3 to 2020.1.
     
  8. JuanGuzmanH

    JuanGuzmanH

    Joined:
    Feb 8, 2018
    Posts:
    70
    There is another way. Those are the steps I followed (windows)
    - Update to the last last LTS 2019 (Im not sure if its totally necessary but I did)
    - Install android Studio
    - Open android studio as admin
    - Go to Configure --> Sdk manager
    - Change the path of the sdk to (in my case) C:\Program Files\Unity\Hub\Editor\2019.4.5f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK
    - And then install Android API 29

    After this Unity is able to build targeting API 29
     
  9. bobcccc

    bobcccc

    Joined:
    Mar 12, 2014
    Posts:
    122
    This installed API 30 on mine....is it ok to work with API 30 or should I use 29??
     
  10. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    This seems to build API 29 ok. I tried it with 30 and Unity won't build it though, says Required API level 30. Is there something else that needs to be done you think?
     
  11. HectorOfPriamos

    HectorOfPriamos

    Joined:
    Jul 9, 2017
    Posts:
    15
    Peter ,
    First of all sorry for my late reply. I was using 2019.3.12. When I encountered that problem upgrading was the first thing I did since most problems get solved in that way :) So I started using 2020.1.0f1. However I still had the same issue. I don't know if it would help but I reinstalled everything about Unity, Android Studio and Android SDK. No progres...
    Later on I came up with the solution in the link below:

    https://forum.unity.com/threads/quickfix-to-build-with-target-api-level-29.938237/

    It solved the problem like magic. From command window I was able to update Android SDK to level 29 and build without any problem. Why it didn't work in other way still I have no idea though. As far as I see in your case it helped to upgrade Unity. So maybe this is a complicated issue which is based on different stuff for different people.