Android Question Crashlytics error at startup

Status
Not open for further replies.

Computersmith64

Well-Known Member
Licensed User
I installed the B4A v10.90 beta #1 yesterday along with the new required resources & command line tools. I've recompiled a couple of previously working apps (& replaced FirebaseAdMob with FirebaseAdMob2), but now I find that I'm getting a Crashlytics error when the apps start. The error isn't causing the app to crash, but I suspect it will be causing Crashlytics to not work. Here's the log:

Service started in the background. Trying to start again in foreground mode.
java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
Copying updated assets files (65)
*** Service (starter) Create ***
Device locale: en
Found 233 strings.
Found 233 strings.
** Service (starter) Start **
Service started in foreground mode.
** Service (starter) Destroy (ignored)**

If I remove:
B4X:
#AdditionalJar: com.google.firebase:firebase-crashlytics
& clean the project & recompile, I don't see the error. However if I put it back in, clean & recompile it comes back.

I've searched the forum, but haven't been able to find anything to help me locate the cause of this error.

- Colin.
 

Erel

Administrator
Staff member
Licensed User
Do you see it in the unfiltered logs?

I'm unable to reproduce it. Using the packaged SDK without any changes.

Crashlytics version:

1623822259908.png


transport:

1623822289047.png
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Hi Erel,

I'm using the same versions as you showed in your post. Here's what I think is the relevant unfiltered log:
*** Debugger waiting for connection (0) ***
Compat change id reported: 147798919; UID 10347; state: ENABLED
Unable to open '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': No such file or directory
Failed to open APK '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': I/O error
failed to preload asset path '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk
at android.content.res.ApkAssets.nativeLoad(Native Method)
at android.content.res.ApkAssets.<init>(ApkAssets.java:289)
at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:138)
at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:453)
at android.app.ResourcesManager.access$000(ResourcesManager.java:71)
at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:161)
at android.app.ResourcesManager.createApkAssetsSupplierNotLocked(ResourcesManager.java:980)
at android.app.ResourcesManager.getResources(ResourcesManager.java:1101)
at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2355)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1728)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1714)
at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1483)
at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3006)
at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:288)
at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:245)
at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:176)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:84)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:70)
at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:82)
at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:111)
at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda0.run(Unknown Source:16)
at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:138)
at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1415)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7796)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
Unable to open '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': No such file or directory
Failed to open APK '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': I/O error
failed to add asset path '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk
at android.content.res.ApkAssets.nativeLoad(Native Method)
at android.content.res.ApkAssets.<init>(ApkAssets.java:289)
at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:138)
at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:453)
at android.app.ResourcesManager.access$000(ResourcesManager.java:71)
at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:161)
at android.app.ResourcesManager.createAssetManager(ResourcesManager.java:530)
at android.app.ResourcesManager.createResourcesImpl(ResourcesManager.java:612)
at android.app.ResourcesManager.findOrCreateResourcesImplForKeyLocked(ResourcesManager.java:664)
at android.app.ResourcesManager.createResources(ResourcesManager.java:1011)
at android.app.ResourcesManager.getResources(ResourcesManager.java:1114)
at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2355)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1728)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1714)
at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1483)
at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3006)
at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:288)
at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:245)
at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:176)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:84)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:70)
at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:82)
at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:111)
at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda0.run(Unknown Source:16)
at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:138)
at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1415)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7796)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
Failure retrieving resources for com.airlinemates.yahtzee
Class com.google.android.gms.internal.measurement.zzbz failed lock verification and will run slower.
Background start not allowed: service Intent { cmp=com.airlinemates.yahtzee/.starter } to com.airlinemates.yahtzee/.starter from pid=29516 uid=10347 pkg=com.airlinemates.yahtzee startFg?=false
Service started in the background. Trying to start again in foreground mode.
Background started FGS: Allowed [callingPackage: com.airlinemates.yahtzee; callingUid: 10347; uidState: TPSL; intent: Intent { cmp=com.airlinemates.yahtzee/.starter }; code:ACTIVITY_STARTER; tempAllowListReason:<null>; targetSdkVersion:30; callerTargetSdkVersion:30; startForegroundCount:0]
add tag=system_server_wtf isTagEnabled=true flags=0x2
*** Debugger waiting for connection (0) ***
Compat change id reported: 147798919; UID 10347; state: ENABLED
Unable to open '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': No such file or directory
Failed to open APK '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': I/O error
failed to preload asset path '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk
at android.content.res.ApkAssets.nativeLoad(Native Method)
at android.content.res.ApkAssets.<init>(ApkAssets.java:289)
at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:138)
at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:453)
at android.app.ResourcesManager.access$000(ResourcesManager.java:71)
at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:161)
at android.app.ResourcesManager.createApkAssetsSupplierNotLocked(ResourcesManager.java:980)
at android.app.ResourcesManager.getResources(ResourcesManager.java:1101)
at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2355)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1728)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1714)
at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1483)
at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3006)
at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:288)
at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:245)
at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:176)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:84)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:70)
at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:82)
at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:111)
at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda0.run(Unknown Source:16)
at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:138)
at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1415)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7796)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
Unable to open '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': No such file or directory
Failed to open APK '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk': I/O error
failed to add asset path '/data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~yWTAbOaV1PMC_6WQb17fUQ==/com.airlinemates.yahtzee-sPwNKaL5Ssd9Qd8GT5KOHw==/base.apk
at android.content.res.ApkAssets.nativeLoad(Native Method)
at android.content.res.ApkAssets.<init>(ApkAssets.java:289)
at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:138)
at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:453)
at android.app.ResourcesManager.access$000(ResourcesManager.java:71)
at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:161)
at android.app.ResourcesManager.createAssetManager(ResourcesManager.java:530)
at android.app.ResourcesManager.createResourcesImpl(ResourcesManager.java:612)
at android.app.ResourcesManager.findOrCreateResourcesImplForKeyLocked(ResourcesManager.java:664)
at android.app.ResourcesManager.createResources(ResourcesManager.java:1011)
at android.app.ResourcesManager.getResources(ResourcesManager.java:1114)
at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2355)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1728)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1714)
at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1483)
at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3006)
at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:288)
at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:245)
at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:176)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:84)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:70)
at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:82)
at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:111)
at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda0.run(Unknown Source:16)
at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:138)
at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1415)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7796)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
Failure retrieving resources for com.airlinemates.yahtzee
Error inserting flex_time=3460000 job_id=-1 period=6922000 source=16 requires_charging=0 preferred_network_type=1 target_class=com.google.android.gms.measurement.PackageMeasurementTaskService user_id=0 target_package=com.google.android.gms tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG task_type=0 required_idleness_state=0 service_kind=0 source_version=212116000 persistence_level=1 preferred_charging_state=1 required_network_type=0 runtime=1623826545045 retry_strategy={"maximum_backoff_seconds":{"3600":0},"initial_backoff_seconds":{"30":0},"retry_policy":{"0":0}} last_runtime=0, error message: UNIQUE constraint failed: pending_ops.tag, pending_ops.target_class, pending_ops.target_package, pending_ops.user_id (code 2067 SQLITE_CONSTRAINT_UNIQUE) [CONTEXT service_id=218 ]
Rejecting re-init on previously-failed class java.lang.Class<com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder>: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
(Throwable with no stack trace)
Class com.google.android.gms.tasks.zzac failed lock verification and will run slower.
FATAL EXCEPTION: pool-9-thread-4
Process: com.airlinemates.yahtzee, PID: 29516
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
java.lang.NoClassDefFoundError: com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:13)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
... 13 more
[/code]

The "failed to open", "unable to open", etc... messages seem potentially to be an issue - but I don't know how to troubleshoot this from here.

- Colin.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
[EDIT] It may be relevant actually, because I just tested on a device running R & didn't see the issue.

Oh - I don't know if it's relevant or not but I'm running Android 12 (S) on this device.

- Colin.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
OK - so yesterday I induced crashes on devices running Android S & Android R - & none of them have shown up in the Firebase console. I also saw this thread in the forums as well as a few other Firebase related threads, so I'm starting to wonder if there's a bigger issue here.

- Colin.
 
Upvote 0

Jack Cole

Well-Known Member
Licensed User
I'm having this problem too. I don't get a crash on my testing devices, but I see them on the Play Console. I am also not getting any crash reports in Firebase.

My error is a little different.

java.lang.NoClassDefFoundError:
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure (AutoBatchedLogRequestEncoder.java:21)
at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith (JsonDataEncoderBuilder.java:103)
at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder (BatchedLogRequest.java:39)
at com.google.android.datatransport.cct.CctTransportBackend.<init> (CctTransportBackend.java:100)
at com.google.android.datatransport.cct.CctTransportBackend.<init> (CctTransportBackend.java:129)
at com.google.android.datatransport.cct.CctBackendFactory.create (CctBackendFactory.java:29)
at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get (MetadataBackendRegistry.java:80)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1 (DefaultScheduler.java:70)
at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run (Unknown Source:8)
at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run (SafeLoggingExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.processTask (ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:784)
Caused by: java.lang.NoSuchMethodError:
at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit> (AutoBatchedLogRequestEncoder.java:38)

Although crash reports are not working for any device, it only seems to be crashing on certain devices / android versions.

1623889352972.png
 
Upvote 0

Erel

Administrator
Staff member
Licensed User
I've found the mismatched library. It was com\google\android\datatransport\transport-backend-cct\2.3.3.
Open B4A Sdk Manager and install com\google\android\datatransport\transport-backend-cct\2.3.1, it will be in the recommended items.

Clean the project and it should work.
 
Upvote 0

Filippo

Expert
Licensed User
I've found the mismatched library. It was com\google\android\datatransport\transport-backend-cct\2.3.3.
Open B4A Sdk Manager and install com\google\android\datatransport\transport-backend-cct\2.3.1, it will be in the recommended items.

Clean the project and it should work.
Thank you! It has helped with me too.
 
Upvote 0

AHilberink

Active Member
Licensed User
Hi,

I got the same error, but cannot find 2.3.1 at recommended:
Knipsel.JPG


I installed all latest version.

What can I do?

Kind regards,
André
 
Upvote 0
Status
Not open for further replies.
Top