java.lang.RuntimeException: An error occured while executing doInBackground()

Stack Overflow | aez | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. android.content.ReceiverCallNotAllowedException

    IntentReceiver components are not allowed to bind to services

    at android.app.ReceiverRestrictedContext.bindService()
  2. Android Platform
    ReceiverRestrictedContext.bindService
    1. android.app.ReceiverRestrictedContext.bindService(ContextImpl.java:178)
    1 frame
  3. com.google.android
    GoogleAuthUtil.getToken
    1. com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
    2. com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
    2 frames
  4. Android Platform Extensions to the Google APIs Client Library for Java.
    GoogleAccountCredential$RequestHandler.intercept
    1. com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.getToken(GoogleAccountCredential.java:192)
    2. com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:217)
    2 frames
  5. Google HTTP Client Library for Java
    HttpRequest.execute
    1. com.google.api.client.http.HttpRequest.execute(HttpRequest.java:836)
    1 frame
  6. Google APIs Client Library for Java
    AbstractGoogleClientRequest.execute
    1. com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:412)
    2. com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:345)
    3. com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:463)
    3 frames
  7. com.my_package
    ServerRequests$11.doInBackground
    1. com.my_package.ServerRequests$11.doInBackground(ServerRequests.java:378)
    1 frame