java.lang.IllegalStateException: Calling this from your main thread can lead to deadlock I'm surely doing something wrong when gettign AdvertisingId... Complete stacktrace : java.lang.RuntimeException: java.lang.IllegalStateException: Calling this from your main thread can lead to deadlock

Stack Overflow | Hugo Gresse | 2 years 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

    Asynchronous test code in Robolectric 3 with Play Services

    Stack Overflow | 2 years ago | Hugo Gresse
    java.lang.IllegalStateException: Calling this from your main thread can lead to deadlock I'm surely doing something wrong when gettign AdvertisingId... Complete stacktrace : java.lang.RuntimeException: java.lang.IllegalStateException: Calling this from your main thread can lead to deadlock
  2. 0

    Vungle initialization causes app to crash with IllegalStateException - Vungle - Corona Labs Forums

    coronalabs.com | 8 months ago
    java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 4242000 but found 0.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Calling this from your main thread can lead to deadlock

      at com.google.android.gms.common.internal.zzx.zzbe()
    2. com.google.android
      AdvertisingIdClient.getAdvertisingIdInfo
      1. com.google.android.gms.common.internal.zzx.zzbe(Unknown Source)
      2. com.google.android.gms.common.internal.zzx.zzbe(Unknown Source)
      3. com.google.android.gms.ads.identifier.AdvertisingIdClient.finish(Unknown Source)
      4. com.google.android.gms.ads.identifier.AdvertisingIdClient.finish(Unknown Source)
      5. com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source)
      6. com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(Unknown Source)
      6 frames
    3. com.example.sdk
      ServerClient$RetrieveAdvertisingId.doInBackground
      1. com.example.sdk.adServer.ServerClient$RetrieveAdvertisingId.doInBackground(ServerClient.java:459)
      2. com.example.sdk.adServer.ServerClient$RetrieveAdvertisingId.doInBackground(ServerClient.java:452)
      2 frames
    4. Roboelectric
      ReflectionHelpers.callInstanceMethod
      1. org.robolectric.util.ReflectionHelpers$3.run(ReflectionHelpers.java:144)
      2. org.robolectric.util.ReflectionHelpers.traverseClassHierarchy(ReflectionHelpers.java:241)
      3. org.robolectric.util.ReflectionHelpers.callInstanceMethod(ReflectionHelpers.java:138)
      3 frames
    5. Roboelectric HTTP
      ShadowAsyncTask$BackgroundWorker.call
      1. org.robolectric.shadows.ShadowAsyncTaskBridge.doInBackground(ShadowAsyncTaskBridge.java:20)
      2. org.robolectric.shadows.ShadowAsyncTask$BackgroundWorker.call(ShadowAsyncTask.java:147)
      2 frames
    6. Roboelectric
      SimpleFuture.run
      1. org.robolectric.util.SimpleFuture.run(SimpleFuture.java:52)
      1 frame