Java.lang.NoSuchMethodError: No static method setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V in class Landroid/support/v4/view/ViewCompatLollipop; or its super classes (declaration of 'android.support.v4.view.ViewCompatLollipop' appears in /data/data/test.bpl.com.bploximeterdemo/files/instant-run/dex/slice-internal_impl-24.2.0_adc91965034c97937e0e3e7bf26df26d4116a5ab-classes.dex)

Stack Overflow | abh22ishek | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    While upgrading gradle plugins getting java.lang.NoSuchMethodError

    Stack Overflow | 8 months ago | abh22ishek
    Java.lang.NoSuchMethodError: No static method setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V in class Landroid/support/v4/view/ViewCompatLollipop; or its super classes (declaration of 'android.support.v4.view.ViewCompatLollipop' appears in /data/data/test.bpl.com.bploximeterdemo/files/instant-run/dex/slice-internal_impl-24.2.0_adc91965034c97937e0e3e7bf26df26d4116a5ab-classes.dex)

    Root Cause Analysis

    1. Java.lang.NoSuchMethodError

      No static method setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V in class Landroid/support/v4/view/ViewCompatLollipop; or its super classes (declaration of 'android.support.v4.view.ViewCompatLollipop' appears in /data/data/test.bpl.com.bploximeterdemo/files/instant-run/dex/slice-internal_impl-24.2.0_adc91965034c97937e0e3e7bf26df26d4116a5ab-classes.dex)

      at android.support.v4.view.ViewCompat$LollipopViewCompatImpl.setOnApplyWindowInsetsListener()
    2. Android Support v4
      ViewCompat.setOnApplyWindowInsetsListener
      1. android.support.v4.view.ViewCompat$LollipopViewCompatImpl.setOnApplyWindowInsetsListener(ViewCompat.java:1537)
      2. android.support.v4.view.ViewCompat.setOnApplyWindowInsetsListener(ViewCompat.java:2787)
      2 frames
    3. Android v7
      AlertDialog.onCreate
      1. android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:389)
      2. android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:279)
      3. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:253)
      4. android.support.v7.app.AppCompatDialog.setContentView(AppCompatDialog.java:76)
      5. android.support.v7.app.AlertController.installContent(AlertController.java:213)
      6. android.support.v7.app.AlertDialog.onCreate(AlertDialog.java:240)
      6 frames
    4. Android Platform
      Dialog.show
      1. android.app.Dialog.dispatchOnCreate(Dialog.java:394)
      2. android.app.Dialog.show(Dialog.java:295)
      2 frames
    5. wl.bpl.com
      HomeScreenActivity.onCreate
      1. wl.bpl.com.bploximeter.HomeScreenActivity.show_dialog(HomeScreenActivity.java:1252)
      2. wl.bpl.com.bploximeter.HomeScreenActivity.onCreate(HomeScreenActivity.java:235)
      2 frames
    6. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6259)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
      4 frames