Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

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

Solutions on the web

via GitHub by Nibot1
, 4 months ago
Could not execute method for android:onClick
via Stack Overflow by Starivore
, 2 years ago
Could not execute method for android:onClick
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 moreCaused 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 moreCaused 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 moreCaused 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