Android Question [SOLVED] Errors with Firebase

GeoT

Active Member
Licensed User
Longtime User
Hi.

I do not know if due to the update of the Firebase Cloud Messaging API or the B4A updates, I get an error when connecting to it. Specifically there is a problem with the SubscribeTopic(topicName As String) method of FirebaseNotifications library.
.

B4X:
firebasemessaging_subscribetotopics (java line: 184)
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
    at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
    at xerp.xerpchat.firebasemessaging._subscribetotopics(firebasemessaging.java:184)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6077)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
--------- beginning of crash

I use B4A v7.80 and I have already updated the FirebaseNotifications library to version 1.21.

My intention is to use messaging and notifications.



And also FirebaseAuth fails me.
It shows me
B4X:
"Object reference not set as an instance of an object".

Thank you.
 
Last edited:

GeoT

Active Member
Licensed User
Longtime User
B4X:
Registo conectado a:  samsung GT-I9060
--------- beginning of /dev/log/main
Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
VFY: unable to resolve virtual method 683: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
VFY: unable to resolve virtual method 690: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
VFY: unable to resolve virtual method 691: Landroid/content/Context;.getColor (I)I
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
VFY: unable to resolve virtual method 692: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
VFY: unable to resolve virtual method 694: Landroid/content/Context;.getDataDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
VFY: unable to resolve virtual method 696: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalCacheDirs, referenced from method android.support.v4.content.ContextCompat.getExternalCacheDirs
VFY: unable to resolve virtual method 698: Landroid/content/Context;.getExternalCacheDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalFilesDirs, referenced from method android.support.v4.content.ContextCompat.getExternalFilesDirs
VFY: unable to resolve virtual method 700: Landroid/content/Context;.getExternalFilesDirs (Ljava/lang/String;)[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
VFY: unable to resolve virtual method 704: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getObbDirs, referenced from method android.support.v4.content.ContextCompat.getObbDirs
VFY: unable to resolve virtual method 706: Landroid/content/Context;.getObbDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.startForegroundService, referenced from method android.support.v4.content.ContextCompat.startForegroundService
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0006
com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method com.google.android.gms.internal.measurement.zzwu.init
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0009
FirebaseApp initialization successful
Starting remote logger. Port: 22469
GC_CONCURRENT freed 267K, 19% free 9194K/11240K, paused 135ms+39ms, total 188ms
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.isCallerInstantApp
VFY: unable to resolve virtual method 849: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
VFY: replacing opcode 0x6e at 0x002d
Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.uidHasPackageName
VFY: unable to resolve check-cast 34 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
VFY: replacing opcode 0x1f at 0x0010
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.InstantApps.isInstantApp
VFY: unable to resolve virtual method 848: Landroid/content/pm/PackageManager;.isInstantApp ()Z
VFY: replacing opcode 0x6e at 0x0028
App measurement is starting up, version: 12451
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
  adb shell setprop debug.firebase.analytics.app com.proves.tomkygo
Parent view is not a TextView
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0079
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 135: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0017
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 137: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0018
Could not find method android.app.AlarmManager.setExact, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 136: Landroid/app/AlarmManager;.setExact (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0024
GC_CONCURRENT freed 353K, 19% free 9237K/11360K, paused 3ms+1ms, total 16ms
*** Service (starter) Create ***
** Service (starter) Start **
gHwMemAllocator client 1
gHwMemAllocator client 2
loaded /system/lib/egl/libGLES_java.so
mem_init ++
gHwMemAllocator client 3
**** Using ION allocator ****
registered SIGUSR1[10] for pid[11166]
HwMemAllocatorImpl Static Counters 0 0
HwMemAllocatorImpl[50deedcc] totalDeviceAllocSize[0] totalFree[0] maxFree[0] in numSlabs[0]
mem_init 50deedcc--
config: version(0x10000) secure(0xf000) 256M(0x22d) fast(0x608) hwwr(0x608)
Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isRestrictedUserProfile
VFY: unable to resolve virtual method 1815: Landroid/os/UserManager;.getApplicationRestrictions (Ljava/lang/String;)Landroid/os/Bundle;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isUninstalledAppPossiblyUpdating
VFY: unable to resolve virtual method 842: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
mm_device_thread starting
Could not find method android.app.ActivityManager.isLowRamDevice, referenced from method com.google.android.gms.common.util.DeviceProperties.isLowRamOrPreKitKat
VFY: unable to resolve virtual method 117: Landroid/app/ActivityManager;.isLowRamDevice ()Z
VFY: replacing opcode 0x6e at 0x0016
Enabling debug mode 0
** Activity (main) Create, isFirst = true **
FirebaseAuth initialized
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000f
Could not find method android.app.Notification$Builder.setChannelId, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 264: Landroid/app/Notification$Builder;.setChannelId (Ljava/lang/String;)Landroid/app/Notification$Builder;
VFY: replacing opcode 0x6e at 0x0081
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.setDefaultNotificationChannelId
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000e
DexOpt: unable to opt direct call 0x014c at 0x1c in Lcom/google/android/gms/common/GoogleApiAvailability;.zza
Tag Manager is not found and thus will not be used
GC_CONCURRENT freed 259K, 18% free 9400K/11428K, paused 103ms+3ms, total 122ms
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzj@4193fef0
After accept
[Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 2 mFalseSizeCnt:0
SignInWithGoogle called
SignInWithGoogle.ResultArrived
main_btnsignin_click (java line: 379)
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper$2.ResultArrived(FirebaseAuthWrapper.java:130)
    at anywheresoftware.b4a.BA.startActivityForResult(BA.java:540)
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper.SignInWithGoogle(FirebaseAuthWrapper.java:141)
    at com.proves.tomkygo.main._btnsignin_click(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4439)
    at android.widget.Button.performClick(Button.java:148)
    at android.view.View$PerformClick.run(View.java:18395)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:5319)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
    at dalvik.system.NativeStart.main(Native Method)
GC_CONCURRENT freed 213K, 18% free 9608K/11592K, paused 3ms+3ms, total 21ms
Sending signal. PID: 11166 SIG: 9
Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
VFY: unable to resolve virtual method 683: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
VFY: unable to resolve virtual method 690: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
VFY: unable to resolve virtual method 691: Landroid/content/Context;.getColor (I)I
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
VFY: unable to resolve virtual method 692: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
VFY: unable to resolve virtual method 694: Landroid/content/Context;.getDataDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
VFY: unable to resolve virtual method 696: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalCacheDirs, referenced from method android.support.v4.content.ContextCompat.getExternalCacheDirs
VFY: unable to resolve virtual method 698: Landroid/content/Context;.getExternalCacheDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalFilesDirs, referenced from method android.support.v4.content.ContextCompat.getExternalFilesDirs
VFY: unable to resolve virtual method 700: Landroid/content/Context;.getExternalFilesDirs (Ljava/lang/String;)[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
VFY: unable to resolve virtual method 704: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getObbDirs, referenced from method android.support.v4.content.ContextCompat.getObbDirs
VFY: unable to resolve virtual method 706: Landroid/content/Context;.getObbDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.startForegroundService, referenced from method android.support.v4.content.ContextCompat.startForegroundService
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0006
com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method com.google.android.gms.internal.measurement.zzwu.init
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0009
FirebaseApp initialization successful
Starting remote logger. Port: 22469
After accept
GC_CONCURRENT freed 411K, 20% free 9149K/11328K, paused 35ms+5ms, total 76ms
WAIT_FOR_CONCURRENT_GC blocked 27ms
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.isCallerInstantApp
VFY: unable to resolve virtual method 849: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
VFY: replacing opcode 0x6e at 0x002d
Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.uidHasPackageName
VFY: unable to resolve check-cast 34 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
VFY: replacing opcode 0x1f at 0x0010
Parent view is not a TextView
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.InstantApps.isInstantApp
VFY: unable to resolve virtual method 848: Landroid/content/pm/PackageManager;.isInstantApp ()Z
VFY: replacing opcode 0x6e at 0x0028
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0079
App measurement is starting up, version: 12451
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
  adb shell setprop debug.firebase.analytics.app com.proves.tomkygo
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 135: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0017
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 137: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0018
Could not find method android.app.AlarmManager.setExact, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 136: Landroid/app/AlarmManager;.setExact (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0024
GC_CONCURRENT freed 174K, 18% free 9364K/11348K, paused 2ms+5ms, total 25ms
*** Service (starter) Create ***
** Service (starter) Start **
gHwMemAllocator client 1
gHwMemAllocator client 2
loaded /system/lib/egl/libGLES_java.so
mem_init ++
gHwMemAllocator client 3
**** Using ION allocator ****
registered SIGUSR1[10] for pid[11536]
HwMemAllocatorImpl Static Counters 0 0
HwMemAllocatorImpl[50deedcc] totalDeviceAllocSize[0] totalFree[0] maxFree[0] in numSlabs[0]
mem_init 50deedcc--
config: version(0x10000) secure(0xf000) 256M(0x22d) fast(0x608) hwwr(0x608)
Waiting for mm thread to come up
Waiting for mm thread to come up
Waiting for mm thread to come up
Waiting for mm thread to come up
Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isRestrictedUserProfile
VFY: unable to resolve virtual method 1815: Landroid/os/UserManager;.getApplicationRestrictions (Ljava/lang/String;)Landroid/os/Bundle;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isUninstalledAppPossiblyUpdating
VFY: unable to resolve virtual method 842: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
Could not find method android.app.ActivityManager.isLowRamDevice, referenced from method com.google.android.gms.common.util.DeviceProperties.isLowRamOrPreKitKat
VFY: unable to resolve virtual method 117: Landroid/app/ActivityManager;.isLowRamDevice ()Z
VFY: replacing opcode 0x6e at 0x0016
Waiting for mm thread to come up
mm_device_thread starting
Enabling debug mode 0
** Activity (main) Create, isFirst = true **
FirebaseAuth initialized
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000f
Could not find method android.app.Notification$Builder.setChannelId, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 264: Landroid/app/Notification$Builder;.setChannelId (Ljava/lang/String;)Landroid/app/Notification$Builder;
VFY: replacing opcode 0x6e at 0x0081
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.setDefaultNotificationChannelId
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000e
DexOpt: unable to opt direct call 0x014c at 0x1c in Lcom/google/android/gms/common/GoogleApiAvailability;.zza
Tag Manager is not found and thus will not be used
adjustAdaptiveCoef max=4194304, min=1048576, ut=568
GC_CONCURRENT freed 307K, 18% free 9513K/11588K, paused 5ms+9ms, total 37ms
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzj@41937a98
[Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 2 mFalseSizeCnt:0
SignInWithGoogle called
SignInWithGoogle.ResultArrived
main_btnsignin_click (java line: 379)
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper$2.ResultArrived(FirebaseAuthWrapper.java:130)
    at anywheresoftware.b4a.BA.startActivityForResult(BA.java:540)
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper.SignInWithGoogle(FirebaseAuthWrapper.java:141)
    at com.proves.tomkygo.main._btnsignin_click(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4439)
    at android.widget.Button.performClick(Button.java:148)
    at android.view.View$PerformClick.run(View.java:18395)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:5319)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
    at dalvik.system.NativeStart.main(Native Method)
--------- beginning of /dev/log/system
FATAL EXCEPTION: main
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper$2.ResultArrived(FirebaseAuthWrapper.java:130)
    at anywheresoftware.b4a.BA.startActivityForResult(BA.java:540)
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper.SignInWithGoogle(FirebaseAuthWrapper.java:141)
    at com.proves.tomkygo.main._btnsignin_click(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4439)
    at android.widget.Button.performClick(Button.java:148)
    at android.view.View$PerformClick.run(View.java:18395)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:5319)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
    at dalvik.system.NativeStart.main(Native Method)
 
Upvote 0

GeoT

Active Member
Licensed User
Longtime User
B4X:
Registo conectado a:  samsung GT-I9060
--------- beginning of /dev/log/main
Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
VFY: unable to resolve virtual method 683: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
VFY: unable to resolve virtual method 690: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
VFY: unable to resolve virtual method 691: Landroid/content/Context;.getColor (I)I
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
VFY: unable to resolve virtual method 692: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
VFY: unable to resolve virtual method 694: Landroid/content/Context;.getDataDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
VFY: unable to resolve virtual method 696: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalCacheDirs, referenced from method android.support.v4.content.ContextCompat.getExternalCacheDirs
VFY: unable to resolve virtual method 698: Landroid/content/Context;.getExternalCacheDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalFilesDirs, referenced from method android.support.v4.content.ContextCompat.getExternalFilesDirs
VFY: unable to resolve virtual method 700: Landroid/content/Context;.getExternalFilesDirs (Ljava/lang/String;)[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
VFY: unable to resolve virtual method 704: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getObbDirs, referenced from method android.support.v4.content.ContextCompat.getObbDirs
VFY: unable to resolve virtual method 706: Landroid/content/Context;.getObbDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.startForegroundService, referenced from method android.support.v4.content.ContextCompat.startForegroundService
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0006
com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method com.google.android.gms.internal.measurement.zzwu.init
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0009
FirebaseApp initialization successful
Starting remote logger. Port: 22469
GC_CONCURRENT freed 267K, 19% free 9194K/11240K, paused 135ms+39ms, total 188ms
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.isCallerInstantApp
VFY: unable to resolve virtual method 849: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
VFY: replacing opcode 0x6e at 0x002d
Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.uidHasPackageName
VFY: unable to resolve check-cast 34 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
VFY: replacing opcode 0x1f at 0x0010
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.InstantApps.isInstantApp
VFY: unable to resolve virtual method 848: Landroid/content/pm/PackageManager;.isInstantApp ()Z
VFY: replacing opcode 0x6e at 0x0028
App measurement is starting up, version: 12451
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
  adb shell setprop debug.firebase.analytics.app com.proves.tomkygo
Parent view is not a TextView
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0079
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 135: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0017
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 137: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0018
Could not find method android.app.AlarmManager.setExact, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 136: Landroid/app/AlarmManager;.setExact (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0024
GC_CONCURRENT freed 353K, 19% free 9237K/11360K, paused 3ms+1ms, total 16ms
*** Service (starter) Create ***
** Service (starter) Start **
gHwMemAllocator client 1
gHwMemAllocator client 2
loaded /system/lib/egl/libGLES_java.so
mem_init ++
gHwMemAllocator client 3
**** Using ION allocator ****
registered SIGUSR1[10] for pid[11166]
HwMemAllocatorImpl Static Counters 0 0
HwMemAllocatorImpl[50deedcc] totalDeviceAllocSize[0] totalFree[0] maxFree[0] in numSlabs[0]
mem_init 50deedcc--
config: version(0x10000) secure(0xf000) 256M(0x22d) fast(0x608) hwwr(0x608)
Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isRestrictedUserProfile
VFY: unable to resolve virtual method 1815: Landroid/os/UserManager;.getApplicationRestrictions (Ljava/lang/String;)Landroid/os/Bundle;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isUninstalledAppPossiblyUpdating
VFY: unable to resolve virtual method 842: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
mm_device_thread starting
Could not find method android.app.ActivityManager.isLowRamDevice, referenced from method com.google.android.gms.common.util.DeviceProperties.isLowRamOrPreKitKat
VFY: unable to resolve virtual method 117: Landroid/app/ActivityManager;.isLowRamDevice ()Z
VFY: replacing opcode 0x6e at 0x0016
Enabling debug mode 0
** Activity (main) Create, isFirst = true **
FirebaseAuth initialized
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000f
Could not find method android.app.Notification$Builder.setChannelId, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 264: Landroid/app/Notification$Builder;.setChannelId (Ljava/lang/String;)Landroid/app/Notification$Builder;
VFY: replacing opcode 0x6e at 0x0081
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.setDefaultNotificationChannelId
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000e
DexOpt: unable to opt direct call 0x014c at 0x1c in Lcom/google/android/gms/common/GoogleApiAvailability;.zza
Tag Manager is not found and thus will not be used
GC_CONCURRENT freed 259K, 18% free 9400K/11428K, paused 103ms+3ms, total 122ms
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzj@4193fef0
After accept
[Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 2 mFalseSizeCnt:0
SignInWithGoogle called
SignInWithGoogle.ResultArrived
main_btnsignin_click (java line: 379)
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper$2.ResultArrived(FirebaseAuthWrapper.java:130)
    at anywheresoftware.b4a.BA.startActivityForResult(BA.java:540)
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper.SignInWithGoogle(FirebaseAuthWrapper.java:141)
    at com.proves.tomkygo.main._btnsignin_click(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4439)
    at android.widget.Button.performClick(Button.java:148)
    at android.view.View$PerformClick.run(View.java:18395)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:5319)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
    at dalvik.system.NativeStart.main(Native Method)
GC_CONCURRENT freed 213K, 18% free 9608K/11592K, paused 3ms+3ms, total 21ms
Sending signal. PID: 11166 SIG: 9
Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
VFY: unable to resolve virtual method 683: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
VFY: unable to resolve virtual method 690: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
VFY: unable to resolve virtual method 691: Landroid/content/Context;.getColor (I)I
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
VFY: unable to resolve virtual method 692: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
VFY: unable to resolve virtual method 694: Landroid/content/Context;.getDataDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
VFY: unable to resolve virtual method 696: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalCacheDirs, referenced from method android.support.v4.content.ContextCompat.getExternalCacheDirs
VFY: unable to resolve virtual method 698: Landroid/content/Context;.getExternalCacheDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getExternalFilesDirs, referenced from method android.support.v4.content.ContextCompat.getExternalFilesDirs
VFY: unable to resolve virtual method 700: Landroid/content/Context;.getExternalFilesDirs (Ljava/lang/String;)[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
VFY: unable to resolve virtual method 704: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.getObbDirs, referenced from method android.support.v4.content.ContextCompat.getObbDirs
VFY: unable to resolve virtual method 706: Landroid/content/Context;.getObbDirs ()[Ljava/io/File;
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0006
Could not find method android.content.Context.startForegroundService, referenced from method android.support.v4.content.ContextCompat.startForegroundService
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0006
com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method com.google.android.gms.internal.measurement.zzwu.init
VFY: unable to resolve virtual method 715: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0009
FirebaseApp initialization successful
Starting remote logger. Port: 22469
After accept
GC_CONCURRENT freed 411K, 20% free 9149K/11328K, paused 35ms+5ms, total 76ms
WAIT_FOR_CONCURRENT_GC blocked 27ms
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.isCallerInstantApp
VFY: unable to resolve virtual method 849: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
VFY: replacing opcode 0x6e at 0x002d
Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.uidHasPackageName
VFY: unable to resolve check-cast 34 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
VFY: replacing opcode 0x1f at 0x0010
Parent view is not a TextView
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.InstantApps.isInstantApp
VFY: unable to resolve virtual method 848: Landroid/content/pm/PackageManager;.isInstantApp ()Z
VFY: replacing opcode 0x6e at 0x0028
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 730: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0079
App measurement is starting up, version: 12451
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
  adb shell setprop debug.firebase.analytics.app com.proves.tomkygo
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 135: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0017
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 137: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0018
Could not find method android.app.AlarmManager.setExact, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 136: Landroid/app/AlarmManager;.setExact (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0024
GC_CONCURRENT freed 174K, 18% free 9364K/11348K, paused 2ms+5ms, total 25ms
*** Service (starter) Create ***
** Service (starter) Start **
gHwMemAllocator client 1
gHwMemAllocator client 2
loaded /system/lib/egl/libGLES_java.so
mem_init ++
gHwMemAllocator client 3
**** Using ION allocator ****
registered SIGUSR1[10] for pid[11536]
HwMemAllocatorImpl Static Counters 0 0
HwMemAllocatorImpl[50deedcc] totalDeviceAllocSize[0] totalFree[0] maxFree[0] in numSlabs[0]
mem_init 50deedcc--
config: version(0x10000) secure(0xf000) 256M(0x22d) fast(0x608) hwwr(0x608)
Waiting for mm thread to come up
Waiting for mm thread to come up
Waiting for mm thread to come up
Waiting for mm thread to come up
Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isRestrictedUserProfile
VFY: unable to resolve virtual method 1815: Landroid/os/UserManager;.getApplicationRestrictions (Ljava/lang/String;)Landroid/os/Bundle;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtilLight.isUninstalledAppPossiblyUpdating
VFY: unable to resolve virtual method 842: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x0012
Waiting for mm thread to come up
Could not find method android.app.ActivityManager.isLowRamDevice, referenced from method com.google.android.gms.common.util.DeviceProperties.isLowRamOrPreKitKat
VFY: unable to resolve virtual method 117: Landroid/app/ActivityManager;.isLowRamDevice ()Z
VFY: replacing opcode 0x6e at 0x0016
Waiting for mm thread to come up
mm_device_thread starting
Enabling debug mode 0
** Activity (main) Create, isFirst = true **
FirebaseAuth initialized
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000f
Could not find method android.app.Notification$Builder.setChannelId, referenced from method com.google.android.gms.common.GoogleApiAvailability.zza
VFY: unable to resolve virtual method 264: Landroid/app/Notification$Builder;.setChannelId (Ljava/lang/String;)Landroid/app/Notification$Builder;
VFY: replacing opcode 0x6e at 0x0081
Could not find method android.app.NotificationManager.getNotificationChannel, referenced from method com.google.android.gms.common.GoogleApiAvailability.setDefaultNotificationChannelId
VFY: unable to resolve virtual method 341: Landroid/app/NotificationManager;.getNotificationChannel (Ljava/lang/String;)Landroid/app/NotificationChannel;
VFY: replacing opcode 0x6e at 0x000e
DexOpt: unable to opt direct call 0x014c at 0x1c in Lcom/google/android/gms/common/GoogleApiAvailability;.zza
Tag Manager is not found and thus will not be used
adjustAdaptiveCoef max=4194304, min=1048576, ut=568
GC_CONCURRENT freed 307K, 18% free 9513K/11588K, paused 5ms+9ms, total 37ms
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzj@41937a98
[Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 2 mFalseSizeCnt:0
SignInWithGoogle called
SignInWithGoogle.ResultArrived
main_btnsignin_click (java line: 379)
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper$2.ResultArrived(FirebaseAuthWrapper.java:130)
    at anywheresoftware.b4a.BA.startActivityForResult(BA.java:540)
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper.SignInWithGoogle(FirebaseAuthWrapper.java:141)
    at com.proves.tomkygo.main._btnsignin_click(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4439)
    at android.widget.Button.performClick(Button.java:148)
    at android.view.View$PerformClick.run(View.java:18395)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:5319)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
    at dalvik.system.NativeStart.main(Native Method)
--------- beginning of /dev/log/system
FATAL EXCEPTION: main
java.lang.NullPointerException
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper$2.ResultArrived(FirebaseAuthWrapper.java:130)
    at anywheresoftware.b4a.BA.startActivityForResult(BA.java:540)
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper.SignInWithGoogle(FirebaseAuthWrapper.java:141)
    at com.proves.tomkygo.main._btnsignin_click(main.java:379)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:191)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:4439)
    at android.widget.Button.performClick(Button.java:148)
    at android.view.View$PerformClick.run(View.java:18395)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:5319)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
    at dalvik.system.NativeStart.main(Native Method)
 
Upvote 0

GeoT

Active Member
Licensed User
Longtime User
Authentication is enabled in Firebase.

I already found the error. I had to add the line

B4X:
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)

in the manifest editor. For my B4a v8.30.

Forgive and thank you Erel for your time. :rolleyes:
 
Last edited:
Upvote 0
Top