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

前端 未结 2 558
一向
一向 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:09

    I found the solution.

    The problem was related to the 65K Methods Count. I did what android recommended in the link and so i was able to install the app again on devices with older API's.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题