java.lang.IllegalStateException: Only Play Games can use this package!

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

Solutions on the web

via GitHub by wanjin23
, 1 year ago
Only Play Games can use this package!
java.lang.IllegalStateException: Only Play Games can use this package!
at com.google.android.gms.common.internal.Asserts.fail(Asserts.java:135)
at com.google.android.gms.games.service.PlayGames1pServiceBroker.onGetService(PlayGames1pServiceBroker.java:92)
at com.google.android.gms.common.internal.AbstractServiceBroker.getService(AbstractServiceBroker.java:573)
at com.google.android.gms.common.internal.GmsClient.getRemoteService(GmsClient.java:1289)
at com.google.android.gms.common.api.internal.GoogleApiClientConnecting$GetRemoteServiceTask.runLocked(GoogleApiClientConnecting.java:784)
at com.google.android.gms.common.api.internal.GoogleApiClientConnecting$WorkerThreadTask.run(GoogleApiClientConnecting.java:709)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at com.google.android.gms.common.util.concurrent.PriorityRunnable.run(PriorityRunnable.java:17)
at java.lang.Thread.run(Thread.java:831)

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.

Know the solutions? Share your knowledge to help other developers to debug faster.