Android Question InApp Billing emulator crash

jazzzzzzz

Active Member
Licensed User
Longtime User
My App is working good with inApp Purachse in real device,But its crashing in emulator at initializing set itself..Can anybody check

B4X:
** Activity (main) Create, isFirst = true **
Error occurred on line: 98 (Main)
java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.List.isEmpty()' on a null object reference
    at anywheresoftware.b4a.objects.IbHelper.startSetup(IbHelper.java:269)
    at anywheresoftware.b4a.inappbilling3.BillingManager3.Initialize(BillingManager3.java:44)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:753)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:343)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
    at com.snapnwin.main.afterFirstLayout(main.java:102)
    at com.snapnwin.main.access$000(main.java:17)
    at com.snapnwin.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5417)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)


Its crashing at manager.initialise

B4X:
If FirstTime Then   
        kvs.Initialize(File.DirDefaultExternal,"datastore")   
        manager.Initialize("manager", inappkey)
        manager.DebugLogging = True
    End If
 

jazzzzzzz

Active Member
Licensed User
Longtime User
In main activity create itself app is crashing.So I cant even open my app itself in emulator ,even if I dont want to test InApp
 
Upvote 0
Top