Could not find method android.app.Notification$Builder.setLocalOnly

前端 未结 2 584
一向
一向 2021-01-20 22:32

My App has the following Parameters:

android {
    compileSdkVersion 23
    buildToolsVersion \"23.0.2\"

    defaultConfig {
        applicationId \"de.muni         


        
2条回答
  •  我在风中等你
    2021-01-20 23:22

    Well to answer the question on the title of your question you should change Notification to NotificationCompat, i.e.:

    NotificationCompat.Builder.

    The regular Notification.Builder has setLocal available only since API 20.

提交回复
热议问题