When developing an Android app today, I got the following error message in the logcat:
You are targeting Android Oreo and using adaptive icons without having a fallback drawable set for FCM notifications. This can cause a irreversible crash on devices using Oreo. To learn more about this issue check: https://issuetracker.google.com/issues/68716460
It took me a while to track down the meaning and what to do, so I am adding an answer below.