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.

Stack trace

  • java.lang.IllegalStateException: Could not execute method for android:onClick at android.view.View$DeclaredOnClickListener.onClick(View.java:4455) at android.view.View.performClick(View.java:5201) at android.view.View$PerformClick.run(View.java:21209) 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:5525) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at android.view.View$DeclaredOnClickListener.onClick(View.java:4450) ... 9 more Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;** at nl.renarj.jasdb.core.platform.HotspotPlatformManager.getProcessId(Unknown) at nl.renarj.jasdb.core.SimpleKernel.<init>(Unknown) at nl.renarj.jasdb.core.SimpleKernel.loadKernel(Unknown) at nl.renarj.jasdb.core.SimpleKernel.getInstance(Unknown) at nl.renarj.jasdb.core.SimpleKernel.getInstanceFactory(Unknown) at nl.renarj.jasdb.LocalDBSession.<init>(Unknown) at com.example.michael.dbmanager_debug_application.JASDBManager.<init>(JASDBManager.java:24) at com.example.michael.dbmanager_debug_application.MainActivity.debugJASDB(MainActivity.java:55) at com.example.michael.dbmanager_debug_application.MainActivity.debug(MainActivity.java:37) ... 11 more Caused by: java.lang.ClassNotFoundException: Didn't find class "java.lang.management.ManagementFactory" on path: DexPathList[[zip file "/data/app/com.example.michael.dbmanager_debug_application-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.michael.dbmanager_debug_application-2/lib/arm64, /vendor/lib64, /system/lib64]]** at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) ... 20 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

Unknown visitor
Unknown visitorOnce,
Hiren AmaliyarHiren Amaliyar
7 times, last one
Unknown visitor
Unknown visitorOnce,
filipebatistafilipebatista
6 times, last one
Unknown UserUnknown User
Once,
158 more bugmates