As the title suggests I am having trouble with a NullPointerException in the GooglePlayStoreHelper class on some Android devices. I am using the blueprint functions for in-app purchases and so far the system worked like a charm and I already got multiple successful in-app purchases. However I noticed in the GooglePlayConsole that there are quiet a lot (30 out of 1600) devices crashing with the following stack trace:
java.lang.NullPointerException:
at com.epicgames.ue4.GooglePlayStoreHelper$c.a (Unknown Source:35)
at com.android.billingclient.api.BillingClientImpl.a (Unknown Source:9)
at com.epicgames.ue4.GooglePlayStoreHelper.a (Unknown Source:99)
at com.epicgames.ue4.GameActivity$w.run (Unknown Source:12)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:8167)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)
Now I know that this is not much but does anybody have any idea what could be causing that or at least point me in some direction? I have already double checked that I do give all the functions valid references to the player controller and product identifiers. If you need any additional information I will try to provide it.
Hi there!
Does nobody have any idea or hint? The problem is I am not even sure if the problem is somewhere in my blueprints or somewhere in the provided blueprint functions.
Thanks
Hey ForgeGames. I have not yet been able to solve this problem. The min sdk version is 21 and the target is 29. The SDK API Level is set to ‘latest’ and the NDK API Level is ‘android-19’. The NDK Version is 21.1.6352462