Bug? In-App Billing v3

Douglas Farias

Expert
Licensed User
Longtime User
Hi
Later the last updates with firebase, firebaseadmob, firebaseanalytics the in-app stop works.

The error is on this line

B4X:
   If FirstTime = True Then
      manager.Initialize("manager", key)
End If


** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 108 (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 com.afina.iddesenvolvimento.main._activity_create(main.java:487)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:703)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
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.afina.iddesenvolvimento.main.afterFirstLayout(main.java:102)
at com.afina.iddesenvolvimento.main.access$000(main.java:17)
at com.afina.iddesenvolvimento.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)
** Activity (main) Resume **

my google play services is rev 30 now to use the new firebase libs, i dont have this error on my device but later upload a new app version (firebase libs) i see 57 crash reports about this.

i m using the same lib
https://www.b4x.com/android/forum/threads/in-app-billing-v3-library.29998/

i think the problem is the new google play services or the b4a 6 beta.

Tested with the BETA #2 and the bug continue
thx
 
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
Yes, tested on 2 devices Samsung J2 (Android 5.1.1) and a sony with kitkat
on emulator Android 6 the same error

The error its on the line
B4X:
manager.Initialize("manager", key)
 

Douglas Farias

Expert
Licensed User
Longtime User
Hi.
I dont know the problem, but i solved.
I m downloaded the android sdk and reinstaled all again and now its working.

thx
 
Top