java.lang.IllegalStateException: Could not execute method of the activity


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by Fishingfon
, 1 year ago
Could not execute method of the activity

Solution icon of stackoverflow
via Stack Overflow by MrSnaKe
, 1 year ago
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Solution icon of stackoverflow
Could not execute method of the activity

Stack trace

java.lang.IllegalStateException: Could not execute method of the activity
	at android.view.View$1.onClick(View.java:4007)
	at android.view.View.performClick(View.java:4756)
	at android.view.View$PerformClick.run(View.java:19749)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5221)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at android.view.View$1.onClick(View.java:4002)
	... 10 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setVisibility(int)' on a null object reference
	at com.extodigital.extochat.LoginActivity.loginchoice(LoginActivity.java:23)
	... 13 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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.