Play Console Error SDK34+: "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"

Hello, I checked it, based on the errors and the settings you have on the pictures, you are targeting SDK 30, not 34 or 35, the “Target SDK Version” in Project → Android, is the target version.

Also in the build.gradle (not the app build.gradle) you have this line

classpath project.hasProperty(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) ? project.property(‘ANDROID_TOOLS_BUILD_GRADLE_VERSION’) : ‘com.android.tools.build:gradle:3.5.3’

which is there by default, not sure what the variables hold, but it definetely sets an older version of AGP (android gradle plugin which is the com.android.tools.build:gradle)

You will have to setup these things correctly, because its not even building to SDK34, and lots of stuff are using outdated versions.

I started making the tutorial about how to do this because there are lots of stuff, so I will finish that today and I will post the link here.

And one more thing, you can also format your code here, you can put code between these aposthrophes ``, to format in one line, like this, or you can also do codeblock by 3 of these at the start and end

codeblock

But you can also use the formatter builtin in the toolbar above. Just so this helps with code readability.

1 Like