java.lang.NoSuchMethodError

Landroid/app/Activity;.requestPermissions

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web527

  • Landroid/app/Activity;.requestPermissions
  • No virtual method requestPermissions([Ljava/lang/String;I)V in class Landroid/app/Activity; or its super classes (declaration of 'android.app.Activity' appears in /system/framework/framework.jar:classes2.dex)
  • via GitHub by theblixguy
    , 5 months ago
    No static method startActivity(Landroid/app/Activity;Landroid/content/Intent;Landroid/os/Bundle;)V in class Landroid/support/v4/app/ActivityCompat; or its super classes (declaration of 'android.support.v4.app.ActivityCompat' appears in /data/app/com.ssrij.warnindia-1/split_lib_dependencies_apk.apk:classes13.dex)
  • Stack trace

    • java.lang.NoSuchMethodError: Landroid/app/Activity;.requestPermissions at com.onesignal.AndroidSupportV4Compat$ActivityCompatApi23.requestPermissions(AndroidSupportV4Compat.java:78) at com.onesignal.AndroidSupportV4Compat$ActivityCompat.requestPermissions(AndroidSupportV4Compat.java:69) at com.onesignal.PermissionsActivity.requestPermission(PermissionsActivity.java:60) at com.onesignal.PermissionsActivity.onCreate(PermissionsActivity.java:48) at android.app.Activity.performCreate(Activity.java:5133) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) at android.app.ActivityThread.access$600(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java) at dalvik.system.NativeStart.main(NativeStart.java)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.