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.