java.lang.IllegalStateException: Could not execute method for android:onClick


Solutions on the web

Solution icon of github
via GitHub by HYVincent
, 10 months ago
Could not execute method for android:onClick

Solution icon of stackoverflow
via Stack Overflow by Zahraa Fatma
, 1 year ago
Could not execute method for android:onClick

Solution icon of stackoverflow
Could not execute method for android:onClick

Solution icon of stackoverflow
Could not execute method for android:onClick

Solution icon of stackoverflow
Could not execute method for android:onClick

Solution icon of stackoverflow
Could not execute method for android:onClick

Solution icon of stackoverflow
Could not execute method for android:onClick

Solution icon of stackoverflow
Could not execute method for android:onClick

Solution icon of stackoverflow
Could not execute method for android:onClick

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:5204)
	at android.view.View$PerformClick.run(View.java:21158)
	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:5461)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
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.IllegalArgumentException: GoogleApiClient parameter is required.
	at com.google.android.gms.common.internal.zzac.zzb(Unknown Source)
	at com.google.android.gms.games.Games.zzb(Unknown Source)
	at com.google.android.gms.games.Games.zzi(Unknown Source)
	at com.google.android.gms.games.internal.api.RealTimeMultiplayerImpl.getSelectOpponentsIntent(Unknown Source)
	at com.example.anna.chipin.Menu.onStartMatchClicked(Menu.java:44)
	... 11 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

48 times, 9 months ago