Android的Firebase消息通知系统UI崩溃

时间:2018-07-09 07:25:09

标签: java android firebase google-cloud-messaging

因此,我已将firebase消息传递库添加到gradle中,当我在Firebase控制台上并向设备发送通知时,它完全崩溃了设备的系统UI,冻结了手机并使其变得奇怪。系统界面也崩溃,没有通知,似乎只是在ive添加了cloudmessaging的gradle依赖之后发生。  我唯一的提示就是这个错误

rocess: com.android.systemui, PID: 18646
java.lang.OutOfMemoryError: Failed to allocate a 64000012 byte allocation with 4193696 free bytes and 51MB until OOM
    at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:651)
    at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:486)
    at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1085)
    at android.content.res.Resources.loadDrawableForCookie(Resources.java:2867)
    at android.content.res.Resources.loadDrawable(Resources.java:2756)
    at android.content.res.Resources.getDrawable(Resources.java:920)
    at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:313)
    at android.graphics.drawable.Icon.loadDrawable(Icon.java:269)
    at android.graphics.drawable.Icon.loadDrawableAsUser(Icon.java:377)
    at com.android.systemui.statusbar.StatusBarIconView.getIcon(StatusBarIconView.java:199)
    at com.android.systemui.statusbar.StatusBarIconView.getIcon(StatusBarIconView.java:184)
    at com.android.systemui.statusbar.StatusBarIconView.updateDrawable(StatusBarIconView.java:171)
    at com.android.systemui.statusbar.StatusBarIconView.set(StatusBarIconView.java:137)
    at com.android.systemui.statusbar.BaseStatusBar.createIcon(BaseStatusBar.java:1860)
    at com.android.systemui.statusbar.BaseStatusBar.createNotificationViews(BaseStatusBar.java:1826)
    at com.android.systemui.statusbar.phone.PhoneStatusBar.addNotification(PhoneStatusBar.java:1429)
    at com.android.systemui.statusbar.BaseStatusBar$6$2.run(BaseStatusBar.java:548)
    at android.os.Handler.handleCallback(Handler.java:815)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:207)
    at android.app.ActivityThread.main(ActivityThread.java:5765)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

0 个答案:

没有答案