java.lang.IllegalStateException

Could not execute method for android:onClick

Samebug tips1

You need to setup a GlideModule before use Glide.

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

Solutions on the web2751

Stack trace

  • java.lang.IllegalStateException: Could not execute method for android:onClick at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293) at android.view.View.performClick(View.java:5201) at android.view.View$PerformClick.run(View.java:21163) at android.os.Handler.handleCallback(Handler.java:746) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288) ... 9 more Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/commons/mail/SimpleEmail; at contasts.jao.email.MainActivity.mandarEmail(MainActivity.java:54) ... 11 more Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.commons.mail.SimpleEmail" on path: DexPathList[[dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-support-annotations-23.4.0_d240637ab16909631b8e0522acd22a25d9696630-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-internal_impl-23.4.0_af59f0bca6bcee7449190085fe52534aee83e2f1-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-com.android.support-support-vector-drawable-23.4.0_bd8c75447dc30c698da5700ab2e0aefa2fe4fe35-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-com.android.support-support-v4-23.4.0_3f1746aab7883e4aa141bfb0b148adeead28e570-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-com.android.support-appcompat-v7-23.4.0_f3af541e04a191f70d73c09b1b309272e4406a2b-classes.dex", dex file "/data/data/contasts.jao.email/files/instant-run/dex/slice-com.android.support-animated-vector-drawable-23.4.0_241ea31a1f8c1e8e0741e2b1a365cddd6e9449c2-classes.dex"],nativeLibraryDirectories=[/data/app/contasts.jao.email-1/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader.findClass(IncrementalClassLoader.java:90) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) ... 12 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

deallocdealloc
3 times, last one
Unknown visitor
Unknown visitorOnce,
jkjk
Once,
cesarnogcesarnog
4 times, last one
Unknown visitor
Unknown visitorOnce,
158 more bugmates