java.lang.IllegalStateException: isLoaded must be called on the main UI thread.

monkey-x.com | 8 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

    Monkey X - Since v84d Android AdmobInterstitial Fails

    monkey-x.com | 8 months ago
    java.lang.IllegalStateException: isLoaded must be called on the main UI thread.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      isLoaded must be called on the main UI thread.

      at com.google.android.gms.common.internal.bx.b()
    2. com.google.android
      aa.onTransact
      1. com.google.android.gms.common.internal.bx.b(SourceFile:251)
      2. com.google.android.gms.ads.internal.a.c(SourceFile:193)
      3. com.google.android.gms.ads.internal.client.aa.onTransact(SourceFile:66)
      3 frames
    3. Android Platform
      Binder.transact
      1. android.os.Binder.transact(Binder.java:297)
      1 frame
    4. com.google.android
      InterstitialAd.isLoaded
      1. com.google.android.gms.internal.ap$a$a.isReady(Unknown Source)
      2. com.google.android.gms.internal.au.isLoaded(Unknown Source)
      3. com.google.android.gms.ads.InterstitialAd.isLoaded(Unknown Source)
      3 frames
    5. com.silentshark.tanks
      BBAndroidGame.onDrawFrame
      1. com.silentshark.tanks.AdmobInterstitial.ShowAd(MonkeyGame.java:2911)
      2. com.silentshark.tanks.c_game.m_see_if_dead(MonkeyGame.java:3650)
      3. com.silentshark.tanks.c_game.p_OnUpdate(MonkeyGame.java:5035)
      4. com.silentshark.tanks.c_GameDelegate.UpdateGame(MonkeyGame.java:6104)
      5. com.silentshark.tanks.BBGame.UpdateGame(MonkeyGame.java:596)
      6. com.silentshark.tanks.BBAndroidGame.UpdateGame(MonkeyGame.java:1267)
      7. com.silentshark.tanks.BBAndroidGame.onDrawFrame(MonkeyGame.java:1334)
      7 frames
    6. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
      2 frames