Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChristopher Stewart
7,531 PointsNot getting a Notification?
I followed the video exactly, but am not getting a notification. I am getting a Toast with this information in it...
Developer warning for package
'com.cstewart.musicmachine'
Failed to post notification on channel 'null'
See log for more details.
Has something change with notifications? Do I need to specify a channel somewhere?
I don't see any useful information in the log.
1 Answer
Christopher Stewart
7,531 PointsThis seems to be an issue with using the latest Android Studio (3.0.1) and support library.
I was using the new defaults:
compiledSdkVersion 26
targetedSdkVersion 26
implementation 'com.android.support:appcompat-v7:26.1.0'
After changing to:
compiledSdkVersion 23
targetedSdkVersion 23
implementation 'com.android.support:appcompat-v7:23.4.0'
and deleting the resources specific to versions greater than 23.
It works just fine.
The material will be updated to cover any new requirements eventually.