FATAL EXCEPTION: Firebase-Messaging-Intent-Handle

未关闭
#1,209 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, firebase, kotlin
领域
mobile

调研方向

未提供特定的源文件或复现步骤;请从 messaging/app/src/main/java/com/google/firebase/quickstart/fcm/kotlin 中的 Kotlin 消息示例开始,并将其依赖项与报告中的 Firebase 和 Google 服务版本进行比较。查看 Firebase Test Lab 和 Play Console 的堆栈跟踪,然后建立一个可复现的案例,并记录消息示例是否可以避免报告的崩溃。

由索引模型根据 Issue 内容生成。

描述

Step 1: Describe your environment
  • Android device: Nokia 1
  • Android OS version: 8.1 (API 27)
  • Google Play Services version: 203915062
  • Firebase/Play Services SDK version: firebase-bom:26.0.0/google-services:4.3.4
buildscript {
	ext.kotlin_version = "1.4.10"
	repositories {
		google()
		jcenter()
	}
	dependencies {
		classpath 'com.android.tools.build:gradle:4.1.0'
		classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
		classpath 'com.google.gms:google-services:4.3.4'
		classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
	}
}

*****************

plugins {
	id 'com.android.application'
	id 'kotlin-android'
	id 'kotlin-android-extensions'
	id 'com.google.gms.google-services'
	id 'com.google.firebase.crashlytics'
}
dependencies {
        ***
        implementation "com.google.gms:google-services:4.3.4"
	implementation 'com.google.android.play:core:1.8.3'
	implementation platform('com.google.firebase:firebase-bom:26.0.0')
	implementation 'com.google.firebase:firebase-crashlytics-ktx'
	implementation "com.google.firebase:firebase-functions-ktx"
	implementation "com.google.firebase:firebase-messaging-ktx"

Step 2: Describe the problem:
Steps to reproduce:
  1. This problem shown on pre-release report of Google Play Console for two devices Nokia 1 and Huawei P8
  2. In local emulator or physical devices not showing this exception, but also shown in Firebase Test Lab devices.
  3. I tested messaging in local devices with FCM token and works fine
  4. I used the same code in this repo : https://github.com/firebase/quickstart-android/tree/master/messaging/app/src/main/java/com/google/firebase/quickstart/fcm/kotlin
Observed Results:
  1. Firbase Test Lab Logcat
11-06 02:29:25.410: E/AndroidRuntime(17339): FATAL EXCEPTION: Firebase-Messaging-Intent-Handle
11-06 02:29:25.410: E/AndroidRuntime(17339): Process: com.google.android.youtube, PID: 17339
11-06 02:29:25.410: E/AndroidRuntime(17339): java.lang.NoClassDefFoundError: aewt
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at aewu.b(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.a(PG:230)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.get(PG:247)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at aevw.b(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dud.al(PG:5)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dud.aw(PG:4)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dud.bg(PG:8)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.a(PG:232)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.get(PG:247)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at afke.a(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at aeri.b(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dud.fv(PG:4)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.c(PG:269)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.get(PG:247)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at amfk.a(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at eiu.K(PG:5)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dud.fV(PG:7)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.d(PG:334)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.get(PG:247)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at com.google.android.apps.youtube.app.common.notification.FcmMessageListenerService.b(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at com.google.firebase.messaging.FirebaseMessagingService.g(PG:53)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at avgp.run(Unknown Source:7)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at usj.run(PG:2)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at java.lang.Thread.run(Thread.java:764)
11-06 02:29:25.410: E/AndroidRuntime(17339): Caused by: java.lang.ExceptionInInitializerError
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at aewu.b(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.a(PG:230)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.get(PG:247)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at aevw.b(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dud.al(PG:5)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.a(PG:174)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duc.get(PG:247)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at aeqv.a(PG:6)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at acpw.b(PG:2)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dxe.a(PG:8)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dus.onCreate(PG:41)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5767)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at android.app.ActivityThread.-wrap1(Unknown Source:0)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1680)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at android.os.Handler.dispatchMessage(Handler.java:106)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at android.os.Looper.loop(Looper.java:164)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at android.app.ActivityThread.main(ActivityThread.java:6523)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at java.lang.reflect.Method.invoke(Native Method)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)
11-06 02:29:25.410: E/AndroidRuntime(17339): Caused by: dkp: libelements.so
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dks.c(PG:52)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at dkq.a(PG:6)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at duv.a(Unknown Source:8)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at avlz.f(PG:8)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at avlz.e(PG:5)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at avlz.a(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at wqq.a(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	at aewt.<clinit>(PG:1)
11-06 02:29:25.410: E/AndroidRuntime(17339): 	... 21 more
  1. Play Console Pre-release Logcat
Process: com.google.android.youtube, PID: 27807
java.lang.NoClassDefFoundError: aewt
	at aewu.b(PG:1)
	at duc.a(PG:230)
	at duc.get(PG:247)
	at aevw.b(PG:1)
	at dud.al(PG:5)
	at dud.aw(PG:4)
	at dud.bg(PG:8)
	at duc.a(PG:232)
	at duc.get(PG:247)
	at afke.a(PG:1)
	at aeri.b(PG:1)
	at dud.fv(PG:4)
	at duc.c(PG:269)
	at duc.get(PG:247)
	at amfk.a(PG:1)
	at eiu.K(PG:5)
	at dud.fV(PG:7)
	at duc.d(PG:334)
	at duc.get(PG:247)
	at com.google.android.apps.youtube.app.common.notification.FcmMessageListenerService.b(PG:1)
	at com.google.firebase.messaging.FirebaseMessagingService.g(PG:53)
	at avgp.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at usj.run(PG:2)
	at java.lang.Thread.run(Thread.java:831)
Expected Results:
  • I don't know why Process: com.google.android.youtube is showing and i'm not using any youtube library all
Relevant Code:
No specific code or step shown that produce the exception.
主要语言
Kotlin
星标
9.3k
派生
7.4k
平均合并
7 天 9 小时
30 天内合并 PR
6

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/quickstart-android 的其他 Issue

查看 firebase/quickstart-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。