java.lang.NoSuchMethodError: No virtual method addDrawerListener(Landroid/support/v4/widget/DrawerLayout$DrawerListener;)V in class Landroid/support/v4/widget/DrawerLayout; or its super classes (declaration of 'android.support.v4.widget.DrawerLayout' appears in /data/data/demo.sbi.com.android_irctc/files/instant-run/dex/slice-com.android.support-support-v4-23.1.1_b118207f54cef84c624be0e78fdf67db32a9749a-classes.dex)

Stack Overflow | Aviraj | 8 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

    java.lang.NoSuchMethodError: No virtual method addDrawerListener with android 22 sdk

    Stack Overflow | 8 months ago | Aviraj
    java.lang.NoSuchMethodError: No virtual method addDrawerListener(Landroid/support/v4/widget/DrawerLayout$DrawerListener;)V in class Landroid/support/v4/widget/DrawerLayout; or its super classes (declaration of 'android.support.v4.widget.DrawerLayout' appears in /data/data/demo.sbi.com.android_irctc/files/instant-run/dex/slice-com.android.support-support-v4-23.1.1_b118207f54cef84c624be0e78fdf67db32a9749a-classes.dex)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No virtual method addDrawerListener(Landroid/support/v4/widget/DrawerLayout$DrawerListener;)V in class Landroid/support/v4/widget/DrawerLayout; or its super classes (declaration of 'android.support.v4.widget.DrawerLayout' appears in /data/data/demo.sbi.com.android_irctc/files/instant-run/dex/slice-com.android.support-support-v4-23.1.1_b118207f54cef84c624be0e78fdf67db32a9749a-classes.dex)

      at com.sbi.sbiirctc.activity.TicketFareActivity.onCreate()
    2. com.sbi.sbiirctc
      TicketFareActivity.onCreate
      1. com.sbi.sbiirctc.activity.TicketFareActivity.onCreate(TicketFareActivity.java:126)
      1 frame
    3. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6251)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
      4 frames