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)

Stack Overflow | Amit Shadadi | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception when recieving notification

    Stack Overflow | 5 months ago | Amit Shadadi
    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)
  2. 0

    NoSuchMethodError on Notifications

    GitHub | 5 years ago | AndyScherzinger
    java.lang.NoSuchMethodError: android.app.Notification$Builder.setProgress
  3. 0

    Android GCM - crashing when creating the notification on the client

    Stack Overflow | 4 years ago | Genadinik
    java.lang.NoSuchMethodError: android.app.Notification$Builder.setProgress at android.support.v4.app.NotificationCompatIceCreamSandwich.a dd(NotificationCompatIceCreamSandwich.java:31)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unit testing: NoSuchMethodError while calling Notification.setLatestEventInfo()

    Stack Overflow | 1 year ago | rekire
    java.lang.NoSuchMethodError: android.app.Notification.setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
  6. 0

    Fatal Exception: java.lang.NoSuchMethodError No interface method build(). No interface method build()Landroid/app/Notification

    Stack Overflow | 2 months ago | Danylo Volokh
    java.lang.NoSuchMethodError: No interface method build()Landroid/app/Notification; in class Landroid/support/v4/app/NotificationBuilderWithBuilderAccessor; or its super classes (declaration of 'android.support.v4.app.NotificationBuilderWithBuilderAccessor' appears in /data/app/com.myapp-1/base.apk)

    Root Cause Analysis

    1. 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()
    2. Android Support v4
      NotificationCompat$Builder.build
      1. android.support.v4.app.NotificationCompat$NotificationCompatImplApi21.build(NotificationCompat.java:761)
      2. android.support.v4.app.NotificationCompat$Builder.build(NotificationCompat.java:1561)
      2 frames
    3. com.google.firebase
      zzb$2.run
      1. com.google.firebase.messaging.zza.zzaf(Unknown Source)
      2. com.google.firebase.messaging.zza.zzas(Unknown Source)
      3. com.google.firebase.messaging.FirebaseMessagingService.zzo(Unknown Source)
      4. com.google.firebase.messaging.FirebaseMessagingService.zzn(Unknown Source)
      5. com.google.firebase.messaging.FirebaseMessagingService.zzm(Unknown Source)
      6. com.google.firebase.iid.zzb$2.run(Unknown Source)
      6 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames