java.lang.IllegalStateException

Could not execute method for android:onClick

Samebug tips5

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

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

Solutions on the web19616

  • Could not execute method for android:onClick
  • via GitHub by moovida
    , 11 months ago
    Could not execute method for android:onClick
  • via GitHub by ascoril
    , 8 months ago
    Could not execute method for android:onClick
  • Stack trace

    • java.lang.IllegalStateException: Could not execute method for android:onClick at android.view.View$DeclaredOnClickListener.onClick(View.java:4461) at android.view.View.performClick(View.java:5207) at android.view.View$PerformClick.run(View.java:21177) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5438) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at android.view.View$DeclaredOnClickListener.onClick(View.java:4456) ... 9 more Caused by: java.lang.reflect.UndeclaredThrowableException at $Proxy0.c(Unknown Source) at com.jph.simple.a.onClick(SourceFile:98) at com.jph.simple.SimpleActivity.onClick(SourceFile:46) ... 11 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.jph.a.d.d.invoke(SourceFile:39) at java.lang.reflect.Proxy.invoke(Proxy.java:393) ... 14 more Caused by: java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.android.camera/.Camera clip={text/uri-list U:content://com.jph.takephoto.fileprovider/camera_photos/images/20161013_131338.jpg} (has extras) } from ProcessRecord{e9a2799 16394:com.jph.simple/u0a187} (pid=16394, uid=10187) with revoked permission android.permission.CAMERA at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2661) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1509) at android.app.Activity.startActivityForResult(Activity.java:3978) at android.app.Activity.startActivityForResult(Activity.java:3939) at com.jph.a.e.e.a(SourceFile:82) at com.jph.a.e.e.b(SourceFile:112) at com.jph.a.a.d.c(SourceFile:371) ... 17 more

    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

    10 times, 4 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    4 times, 1 year ago
    232 more bugmates