Reputation: 597
I'm trying to work with the new Android O.
I've download the latest sdk, and on my gradle.properties there is the following configuration:
MinSDKVersion=26
TargetSDKVersion=26
CompileSDKVersion=26
But I cannot compile because I've got the following error:
error: cannot find symbol method setChannelId(String)
According to google this function is introduced in the sdk 26
Any clue?
Upvotes: 4
Views: 1183
Reputation: 1007474
Make sure that you are using version 26.0.1
or higher of the support libraries (e.g., com.android.support:support-compat
.
Also make sure that you are using android.support.v4.app.NotificationCompat.Builder
, not android.support.v7.app.NotificationCompat.Builder
.
Upvotes: 6