java.lang.NoSuchFieldError: No static field menu_add of type I in class Lcom/nguyenhoanglam/imagepicker/R$id; or its superclasses (declaration of 'com.nguyenhoanglam.imagepicker.R$id' appears in /data/data/com.trinityholisticsolutions.poojamedimart/files/instant-run/dex/slice-slice_6-classes.dex)

GitHub | pinvisible | 6 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

    Getting below error.

    GitHub | 6 months ago | pinvisible
    java.lang.NoSuchFieldError: No static field menu_add of type I in class Lcom/nguyenhoanglam/imagepicker/R$id; or its superclasses (declaration of 'com.nguyenhoanglam.imagepicker.R$id' appears in /data/data/com.trinityholisticsolutions.poojamedimart/files/instant-run/dex/slice-slice_6-classes.dex)

    Root Cause Analysis

    1. java.lang.NoSuchFieldError

      No static field menu_add of type I in class Lcom/nguyenhoanglam/imagepicker/R$id; or its superclasses (declaration of 'com.nguyenhoanglam.imagepicker.R$id' appears in /data/data/com.trinityholisticsolutions.poojamedimart/files/instant-run/dex/slice-slice_6-classes.dex)

      at com.nguyenhoanglam.imagepicker.activity.ImagePickerActivity.onCreateOptionsMenu()
    2. com.nguyenhoanglam.imagepicker
      ImagePickerActivity.onCreateOptionsMenu
      1. com.nguyenhoanglam.imagepicker.activity.ImagePickerActivity.onCreateOptionsMenu(ImagePickerActivity.java:145)
      1 frame
    3. Android Platform
      Activity.onCreatePanelMenu
      1. android.app.Activity.onCreatePanelMenu(Activity.java:2850)
      1 frame
    4. Android Support v4
      FragmentActivity.onCreatePanelMenu
      1. android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:358)
      1 frame
    5. Android v7
      ToolbarActionBar$1.run
      1. android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:88)
      2. android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:270)
      3. android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:88)
      4. android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:454)
      5. android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:61)
      5 frames