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.
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.
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.
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.
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
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.
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.
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+)