android.app.RemoteServiceException: Bad notification for startForeground: java.lang.IllegalArgumentException: Invalid notification (): pkg=fr.herverenault.selfhostedgpstracker id=2131230731 notification=Notification(pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Andre
, 1 year ago
Bad notification for startForeground: java.lang.IllegalArgumentException: Invalid notification (): pkg=fr.herverenault.selfhostedgpstracker id=2131230731 notification=Notification(pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)
via Stack Overflow by beginner
, 5 months ago
contentView=com.nowsip.musicplayer/0x7f040040 vibrate=null sound=null tick defaults=0x0 flags=0x62 color=0x00000000 appGroupKey=com.nowsip.musicplayer vis=PRIVATE secFlags=0x0 secPriority=0))
via Stack Overflow by Egemen Hamutçu
, 1 year ago
Bad notification posted from package com.mypackage.myapp: Couldn't expand RemoteViews for: StatusBarNotification(pkg=com.mypackage.myapp user=UserHandle{0} id=1337 tag=null score=0 key=0|com.mypackage.myapp|1337|null|10166: Notification(pri=0 contentView=com.mypackage.myapp/0x7f04001a vibrate=null sound=null tick defaults=0x0 flags=0x62 color=0x00000000 vis=PRIVATE))
via GitHub by gilbsgilbs
, 7 months ago
|2131361888|null|10104: Notification(pri=-1 contentView=org.pixmob.freemobile.netstat/0x1090086 vibrate=null sound=null tick defaults=0x0 flags=0x62 color=0x00000000 actions=1 vis=PRIVATE))
via Stack Overflow by Douglas Mesquita
, 1 year ago
Bad notification posted from package sample.rio360app: Couldn't expand RemoteViews for: StatusBarNotification(pkg=sample.rio360app user=UserHandle{0} id=1 tag=null score=0 key=0|sample.rio360app|1|null|10183: Notification(pri=0 contentView=sample.rio360app/0x7f0c0054 vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE secFlags=0x0 secPriority=0))
via Stack Overflow by Tal Barda
, 1 year ago
Bad notification posted from package meet.projectoklahoma: Couldn't expand RemoteViews for: StatusBarNotification(pkg=meet.projectoklahoma user=UserHandle{0} id=1 tag=null score=0 key=0|meet.projectoklahoma|1|null|10060: Notification(pri=0 contentView=meet.projectoklahoma/0x7f04001c vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE))
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.IllegalArgumentException: Invalid notification (): pkg=fr.herverenault.selfhostedgpstracker id=2131230731 notification=Notification(pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1517)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)

Users with the same issue

16 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.