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

Bug IAP 4.9.3 Google Play Billing 5.1.0 Outdated

Discussion in 'Unity IAP' started by QuadrantGames, Jul 28, 2023.

  1. QuadrantGames

    QuadrantGames

    Joined:
    Jan 10, 2016
    Posts:
    12
    PBL 5.1.0 is no longer supported on google play apks that target Android 14+

    Error Message from developer console:
    This app targets Android 14 or above, and your current Play Billing Library version doesn't support Android 14. To target the latest Android version, please update your PBL version to either 5.2.1, or 6.0.1 and above.
     
  2. Gonki

    Gonki

    Joined:
    Jul 29, 2023
    Posts:
    1
    Same error today, is this a Console glitch? There is no Billing in the app.
     
    Last edited: Jul 29, 2023
    kimdomyung likes this.
  3. MensaWorld

    MensaWorld

    Joined:
    May 21, 2021
    Posts:
    3
    Same error. How can I update Billing Library version?
     
  4. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    Yeah seems like we need a patch asap
     
  5. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    Hey Mods any idea if there will be a patch to include billing 5.2.1 +

    Or can you source instructions on how to upgrade our own IAP billing file

    Thanks for reading
     
    Last edited: Jul 30, 2023
  6. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    chrome_h6mtWpIYMf.png

    hope this helps
     
  7. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
  8. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    @MensaWorld did you manage to do anything to fix it ?
     
  9. QuadrantGames

    QuadrantGames

    Joined:
    Jan 10, 2016
    Posts:
    12
    Simple solution is to downgrade your android build target from 34 -> 33 in the player/build settings. Which seems to work for uploading and internal testing, but I am now having issues with the Google reviewer saying they are having install issues - not sure if its correlated yet.
     
    kyle789xbl likes this.
  10. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    Thanks for the response man. Annoying it's not just a simple drag and drop new billing file.

    It won't let me click the target platform probably have to install Android studio and set a custom path ect...
     
  11. unity_Kbkpuya9swVoBw

    unity_Kbkpuya9swVoBw

    Joined:
    Oct 20, 2020
    Posts:
    3
    someone found a solution? (is it up to unity to find a fix?)
     
  12. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    im not sure to follow what @QuadrantGames said but at the same time i feel there should be a fix asap from unity team
    :/ shame theres no mods replying would help a lot.
     
  13. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    maybe in like 1 week there will be 100+ comments then they will take action. time will tell
     
  14. kyle789xbl

    kyle789xbl

    Joined:
    Oct 23, 2014
    Posts:
    9
    for anyone with issues
    1.Download Android Studio
    2.SDK manager inside android studio & download target 33
    3.Copy the path inside android studio and open the path in windows file explorer (copy the target 33 file)
    4. find the unity android default sdk location (edit/preferences/external tools) copy and open in windows file explorer
    (2 windows explorers folders should be open)
    5.paste the build target version in with the unity defaults.

    (above leaves unity with default android paths below sets custom)
    -------------------------------------------------------------------------------------------------------------------
    alt :
    do step 1 , 2
    and then find the unity android default sdk location (edit/preferences/external tools) and toggle it off then set the path to the location of the new android studios SDK path.
    --------------------------------------------------------------------------------------------------------------------


    Then finally when you build your aab/apk in build player settings and set target 31 for min and target 33 for max.


    hope this helps someone.
     
    unity_Kbkpuya9swVoBw likes this.
  15. unity_Kbkpuya9swVoBw

    unity_Kbkpuya9swVoBw

    Joined:
    Oct 20, 2020
    Posts:
    3
    it's work you save my day

    other solution:
    in : /Unity/Hub/Editor/2021.3.28f1/PlaybackEngines/AndroidPlayer/SDK/platforms delete the folder android-34 and target unity 33 in build player settings, unity dl automatically unity 33 and the build works
     
  16. MensaWorld

    MensaWorld

    Joined:
    May 21, 2021
    Posts:
    3
    Since I already uploaded to version 34, I can't downgrade to 33 and upload. An error pops up saying that it cannot be lowered to 33. An upgraded Billing Library version should be released.
     
  17. WhaleDev

    WhaleDev

    Joined:
    Sep 22, 2020
    Posts:
    1
  18. MensaWorld

    MensaWorld

    Joined:
    May 21, 2021
    Posts:
    3
    I retried downgrade to 33 from 34. I have uploaded 33 version on GooglePlay today. Thanks bro. I hope the 34 version of billing Library will be released ASAP.
     
  19. frozenwolfstudio9

    frozenwolfstudio9

    Joined:
    Jun 7, 2023
    Posts:
    5
    any news on this ?
     
  20. noclipstudio

    noclipstudio

    Joined:
    Mar 2, 2021
    Posts:
    71
    I would like to know why Unity is so far behind the Google Play Billing version, it's a considerable difference between the 5.1.0 version that Unity makes available and the current version of Google Play Billing (6+)
     
  21. Wilson9253

    Wilson9253

    Joined:
    Sep 9, 2022
    Posts:
    3
    Same issue for me here, trying to revert to version 33
     
  22. touseef6

    touseef6

    Joined:
    Oct 2, 2022
    Posts:
    1
    when I tried to take a build in version 33 then this happened. any one know how to fix it?
     

    Attached Files:

  23. noclipstudio

    noclipstudio

    Joined:
    Mar 2, 2021
    Posts:
    71
    You need to go to the command prompt and run the -update command to update the SDK to a newer version, play in the gpt chat and it gives you the rest of the information about the path, in my case that solved it.
     
  24. Webperon

    Webperon

    Joined:
    Jan 11, 2020
    Posts:
    3
    Arnaud_Gorain likes this.
  25. Arnaud_Gorain

    Arnaud_Gorain

    Unity Technologies

    Joined:
    Jun 28, 2022
    Posts:
    164
  26. omerfarukdagli

    omerfarukdagli

    Joined:
    Nov 30, 2019
    Posts:
    1
    The problem was automatically solved when I opened the project in version 2022.3.1f. Don't forget to update the in-app purchase from Package Manager to version 4.9.
     
    noclipstudio and devabi16 like this.