java.lang.NoSuchMethodError

No direct method <init>(Landroid/content/Context;Landroid/app/Notification;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/widget/RemoteViews;ILandroid/app/PendingIntent;Landroid/app/PendingIntent;Landroid/graphics/Bitmap;IIZZZILjava/lang/CharSequence;ZLjava/lang/String;Ljava/util/ArrayList;Landroid/os/Bundle;IILandroid/app/Notification;Ljava/lang/String;ZLjava/lang/String;)V in class Landroid/support/v4/app/NotificationCompatApi21$Builder; or its super classes (declaration of 'android.support.v4.app.NotificationCompatApi21$Builder' appears in /data/data/com.amit.myapp/files/instant-run/dex/slice-internal_impl-24.2.0_03ea6b597af0b87f5ed6808a426ca9992cd7a314-classes.dex)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web13408

  • via Stack Overflow by Amit Shadadi
    , 9 months ago
    /Bitmap;IIZZZILjava/lang/CharSequence;ZLjava/lang/String;Ljava/util/ArrayList;Landroid/os/Bundle;IILandroid/app/Notification;Ljava/lang/String;ZLjava/lang/String;)V in class Landroid/support/v4/app/NotificationCompatApi21$Builder; or its super classes
  • android.app.Notification.setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
  • via GitHub by Dave1991
    , 1 year ago
    No static method checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in /data/data/com.zhongke.neighbour/files/instant-run/dex/slice-support4_f6dde806a6fd6917fb8d09558b368a26cec6174e-classes.dex)
  • Stack trace

    • java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/Context;Landroid/app/Notification;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/widget/RemoteViews;ILandroid/app/PendingIntent;Landroid/app/PendingIntent;Landroid/graphics/Bitmap;IIZZZILjava/lang/CharSequence;ZLjava/lang/String;Ljava/util/ArrayList;Landroid/os/Bundle;IILandroid/app/Notification;Ljava/lang/String;ZLjava/lang/String;)V in class Landroid/support/v4/app/NotificationCompatApi21$Builder; or its super classes (declaration of 'android.support.v4.app.NotificationCompatApi21$Builder' appears in /data/data/com.amit.myapp/files/instant-run/dex/slice-internal_impl-24.2.0_03ea6b597af0b87f5ed6808a426ca9992cd7a314-classes.dex) at android.support.v4.app.NotificationCompat$NotificationCompatImplApi21.build(NotificationCompat.java:761) at android.support.v4.app.NotificationCompat$Builder.build(NotificationCompat.java:1561) at com.google.firebase.messaging.zza.zzaf(Unknown Source) at com.google.firebase.messaging.zza.zzas(Unknown Source) at com.google.firebase.messaging.FirebaseMessagingService.zzo(Unknown Source) at com.google.firebase.messaging.FirebaseMessagingService.zzn(Unknown Source) at com.google.firebase.messaging.FirebaseMessagingService.zzm(Unknown Source) at com.google.firebase.iid.zzb$2.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.