java.lang.RuntimeException: Failed to acquire Google Application Default credential.

Stack Overflow | Theis Borg | 7 months 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.
  1. 0

    Cannot connect to Google App Engine Remote API

    Stack Overflow | 7 months ago | Theis Borg
    java.lang.RuntimeException: Failed to acquire Google Application Default credential.
  2. 0

    Cannot connect to Google App Engine Remote API

    Google Groups | 7 months ago | Theis Borg via StackOverflow
    java.lang.RuntimeException: Failed to acquire Google Application Default credential.

    1 unregistered visitors

    Root Cause Analysis

    1. java.io.IOException

      The Application Default Credentials are not available. They are available if running on Google App Engine, Google Compute Engine, or Google Cloud Shell. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

      at com.google.appengine.repackaged.com.google.api.client.googleapis.auth.oauth2.DefaultCredentialProvider.getDefaultCredential()
    2. Google AppEngine
      GoogleCredential.getApplicationDefault
      1. com.google.appengine.repackaged.com.google.api.client.googleapis.auth.oauth2.DefaultCredentialProvider.getDefaultCredential(DefaultCredentialProvider.java:98)
      2. com.google.appengine.repackaged.com.google.api.client.googleapis.auth.oauth2.GoogleCredential.getApplicationDefault(GoogleCredential.java:213)
      3. com.google.appengine.repackaged.com.google.api.client.googleapis.auth.oauth2.GoogleCredential.getApplicationDefault(GoogleCredential.java:191)
      3 frames
    3. com.google.appengine
      RemoteApiOptions.useApplicationDefaultCredential
      1. com.google.appengine.tools.remoteapi.RemoteApiOptions.useApplicationDefaultCredential(RemoteApiOptions.java:164)
      1 frame
    4. androidlost_remote
      RemoteTest.main
      1. androidlost_remote.RemoteTest.main(RemoteTest.java:14)
      1 frame