java.lang.NoSuchMethodError: Landroid/app/Activity;.requestPermissions

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

    NoSuchMethodError: requestPermissions crash on Android

    GitHub | 6 months ago | rbarriuso
    java.lang.NoSuchMethodError: Landroid/app/Activity;.requestPermissions
  2. 0

    Fatal Exception: java.lang.NoSuchMethodError

    GitHub | 12 months ago | g123k
    java.lang.NoSuchMethodError: android.app.Activity.requestPermissions

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      Landroid/app/Activity;.requestPermissions

      at com.onesignal.AndroidSupportV4Compat$ActivityCompatApi23.requestPermissions()
    2. com.onesignal
      PermissionsActivity.onCreate
      1. com.onesignal.AndroidSupportV4Compat$ActivityCompatApi23.requestPermissions(AndroidSupportV4Compat.java:78)
      2. com.onesignal.AndroidSupportV4Compat$ActivityCompat.requestPermissions(AndroidSupportV4Compat.java:69)
      3. com.onesignal.PermissionsActivity.requestPermission(PermissionsActivity.java:60)
      4. com.onesignal.PermissionsActivity.onCreate(PermissionsActivity.java:48)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5133)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
      5. android.app.ActivityThread.access$600(ActivityThread.java:141)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
      7. android.os.Handler.dispatchMessage(Handler.java:99)
      8. android.os.Looper.loop(Looper.java:137)
      9. android.app.ActivityThread.main(ActivityThread.java:5103)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:525)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      3. com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
      3 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(NativeStart.java)
      1 frame