Skip to content

targetSdk=35 卡死 targetSdk=33 正常 #66

Description

@DuBaiJunCS

FATAL EXCEPTION: main
Process: com.gyf.cactus.sample, PID: 19297
java.lang.SecurityException: Not allowed to delete channel Cactus with a foreground service
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.app.INotificationManager$Stub$Proxy.deleteNotificationChannel(INotificationManager.java:3781)
at android.app.NotificationManager.deleteNotificationChannel(NotificationManager.java:1039)
at androidx.core.app.NotificationManagerCompat.deleteNotificationChannel(NotificationManagerCompat.java:341)
at com.gyf.cactus.ext.NotificationExtKt$setNotification$$inlined$apply$lambda$1.run(NotificationExt.kt:70)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions