Google Licensing Errors

I am developing a game for android and to release on google play you need API 34. I can not get google admob to work correctly using the built in blueprints for ads, so I have tried a few plugins. Most of the plugins require API 34 as well, but the issue occurs whenever I edit the build.gradle files to use a grade plugin version that supports API 34. I then get the following errors:

LogPlayLevel: UAT: > Task :app:compileDebugJavaWithJavac FAILED
LogPlayLevel: Error: UAT: Z:\app\src\main\java\com\google\android\vending\licensing\LicenseChecker.java:31: error: package com.android.vending.licensing does not exist
LogPlayLevel: UAT: import com.android.vending.licensing.ILicenseResultListener;
LogPlayLevel: UAT: ^
LogPlayLevel: Error: UAT: Z:\app\src\main\java\com\google\android\vending\licensing\LicenseChecker.java:32: error: package com.android.vending.licensing does not exist
LogPlayLevel: UAT: import com.android.vending.licensing.ILicensingService;
LogPlayLevel: UAT: ^
LogPlayLevel: Error: UAT: Z:\app\src\main\java\com\google\android\vending\licensing\LicenseChecker.java:70: error: cannot find symbol
LogPlayLevel: UAT: private ILicensingService mService;
LogPlayLevel: UAT: ^
LogPlayLevel: UAT: symbol: class ILicensingService
LogPlayLevel: UAT: location: class LicenseChecker
LogPlayLevel: Error: UAT: Z:\app\src\main\java\com\google\android\vending\licensing\LicenseChecker.java:221: error: package ILicenseResultListener does not exist
LogPlayLevel: UAT: private class ResultListener extends ILicenseResultListener.Stub {
LogPlayLevel: UAT: ^
LogPlayLevel: UAT: 4 errors

Important notes:
using UE 5.4.4
SDK: 34.0.0 (although this may get overwritten to 33.0.1 when Unreal builds, I am not 100% sure)
NDK: have tried with r25b and r26c
JDK: have tried with 1.8, 11, and 17
I can build and place my app on google play store without updating the android gradle plugin to one that supports API 34 for some reason but then the ads and in-app purchases do not work.

I have found this issue in other places online multiple times, but nobody seems to know how to fix it. I have also seen that google licensing may be deprecated and I might need to update to google play billing but from what I have seen, Unreal Engine does not support it.

hi, upgrade your ndk to r28 , then you can build your app with android sdk 34+ ,
i have tested adMob on my samsung note20 with UE-5.5.4 , it shows some test ads successful…

I appreciate the reply, however I am fairly certain the NDK is not the issue.

Unreal 5.4.4 is not even compatible with r28, as seen in the following picture and the fact that I could not even get it to build with r28, any time I tried it would just revert itself back to r25.
(in the pic I had already gone back to r26c)

It seems to be an API and/or licensing deprecation issue.

Anyone else having this issue, I fixed it by upgrading to Unreal 5.5.4.

I ended up with a different error that I fixed by adding a dependency to the app-level build.gradle file. But that was a separate issue I had with a plugin.