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

GitHub | wanjin23 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 61#239665009

    GitHub | 6 months ago | wanjin23
    java.lang.IllegalStateException: Only Play Games can use this package!

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Only Play Games can use this package!

      at com.google.android.gms.common.internal.Asserts.fail()
    2. com.google.android
      GoogleApiClientConnecting$WorkerThreadTask.run
      1. com.google.android.gms.common.internal.Asserts.fail(Asserts.java:135)
      2. com.google.android.gms.games.service.PlayGames1pServiceBroker.onGetService(PlayGames1pServiceBroker.java:92)
      3. com.google.android.gms.common.internal.AbstractServiceBroker.getService(AbstractServiceBroker.java:573)
      4. com.google.android.gms.common.internal.GmsClient.getRemoteService(GmsClient.java:1289)
      5. com.google.android.gms.common.api.internal.GoogleApiClientConnecting$GetRemoteServiceTask.runLocked(GoogleApiClientConnecting.java:784)
      6. com.google.android.gms.common.api.internal.GoogleApiClientConnecting$WorkerThreadTask.run(GoogleApiClientConnecting.java:709)
      6 frames
    3. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      4 frames
    4. com.google.android
      PriorityRunnable.run
      1. com.google.android.gms.common.util.concurrent.PriorityRunnable.run(PriorityRunnable.java:17)
      1 frame
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:831)
      1 frame