java.lang.NoSuchMethodError: 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)

GitHub | Dave1991 | 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

    GitHub comment 78#230212079

    GitHub | 8 months ago | Dave1991
    java.lang.NoSuchMethodError: 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)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      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)

      at me.nereo.multi_image_selector.MultiImageSelector.hasPermission()
    2. me.nereo.multi_image_selector
      MultiImageSelector.start
      1. me.nereo.multi_image_selector.MultiImageSelector.hasPermission(MultiImageSelector.java:97)
      2. me.nereo.multi_image_selector.MultiImageSelector.start(MultiImageSelector.java:78)
      2 frames
    3. com.zhongke.neighbour
      RepairAddActivity$3.onClick
      1. com.zhongke.neighbour.home.RepairAddActivity$3.onClick(RepairAddActivity.java:107)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4908)
      2. android.view.View$PerformClick.run(View.java:20382)
      3. android.os.Handler.handleCallback(Handler.java:815)
      4. android.os.Handler.dispatchMessage(Handler.java:104)
      5. android.os.Looper.loop(Looper.java:194)
      6. android.app.ActivityThread.main(ActivityThread.java:5692)
      6 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
      2 frames