Notification - java.lang.IllegalArgumentException: width and height must be > 0

java.lang.IllegalArgumentException: width and height must be > 0

错误堆栈信息如下:

2019-11-04 09:59:40.764 1803-1803/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.android.systemui, PID: 1803
    java.lang.IllegalArgumentException: width and height must be > 0
        at android.graphics.Bitmap.createBitmap(Bitmap.java:1004)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:968)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:918)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:879)
        at android.graphics.drawable.AdaptiveIconDrawable.updateMaskBoundsInternal(AdaptiveIconDrawable.java:333)
        at android.graphics.drawable.AdaptiveIconDrawable.updateLayerBounds(AdaptiveIconDrawable.java:295)
        at android.graphics.drawable.AdaptiveIconDrawable.onStateChange(AdaptiveIconDrawable.java:782)
        at android.graphics.drawable.Drawable.setState(Drawable.java:775)
        at android.widget.ImageView.drawableStateChanged(ImageView.java:1305)
        at android.view.View.refreshDrawableState(View.java:20083)
        at android.view.View.dispatchAttachedToWindow(View.java:17463)
        at android.view.ViewGroup.addViewInner(ViewGroup.java:4984)
        at android.view.ViewGroup.addView(ViewGroup.java:4775)
        at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateIconsForLayout(NotificationIconAreaController.java:247)
        at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateNotificationIcons(NotificationIconAreaController.java:155)
        at com.android.systemui.statusbar.phone.StatusBar.updateNotificationShade(StatusBar.java:2375)
        at com.android.systemui.statusbar.phone.StatusBar.updateNotifications(StatusBar.java:2581)
        at com.android.systemui.statusbar.phone.StatusBar.addNotificationViews(StatusBar.java:7859)
        at com.android.systemui.statusbar.phone.StatusBar.addEntry(StatusBar.java:2017)
        at com.android.systemui.statusbar.phone.StatusBar.onAsyncInflationFinished(StatusBar.java:2034)
        at com.android.systemui.statusbar.notification.NotificationInflater$AsyncInflationTask.onAsyncInflationFinished(NotificationInflater.java:641)
        at com.android.systemui.statusbar.notification.NotificationInflater.finishIfDone(NotificationInflater.java:460)
        at com.android.systemui.statusbar.notification.NotificationInflater.-wrap0(Unknown Source:0)
        at com.android.systemui.statusbar.notification.NotificationInflater$6.onViewApplied(NotificationInflater.java:343)
        at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3421)
        at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3401)
        at android.os.AsyncTask.finish(AsyncTask.java:695)
        at android.os.AsyncTask.-wrap1(Unknown Source:0)
        at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:180)
        at android.app.ActivityThread.main(ActivityThread.java:6944)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:835)
2019-11-04 09:59:40.766 1566-3304/? E/ActivityManager: App crashed! Process: com.android.systemui

你可能感兴趣的:(Notification - java.lang.IllegalArgumentException: width and height must be > 0)