https://kotlinlang.org logo
#getting-started
Title
# getting-started
w

Will Nixon

11/15/2020, 9:03 PM
Hi all, getting a little confused about an issue I’m having. Have implemented a Google Oauth process to connected to a user’s drive. Locally, in an emulator, everything works fine, but as soon as I try to test the app in Internal Testing/Closed Testing, the app crashes with this error:
Copy code
java.lang.RuntimeException: 
  at android.os.AsyncTask$4.done (AsyncTask.java:415)
  at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383)
  at java.util.concurrent.FutureTask.setException (FutureTask.java:252)
  at java.util.concurrent.FutureTask.run (FutureTask.java:271)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:305)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
  at java.lang.Thread.run (Thread.java:923)
Caused by: java.lang.IllegalArgumentException: 
  at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument (Preconditions.java:5)
  at com.google.api.client.util.Preconditions.checkArgument (Preconditions.java:10)
  at com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets.getDetails (GoogleClientSecrets.java:10)
  at com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow$Builder.<init> (GoogleAuthorizationCodeFlow.java:10)
  at com.jenix.lemmi.ui.splashscreen.SplashScreenActivity.getCredentials (SplashScreenActivity.java:10)
  at com.jenix.lemmi.ui.splashscreen.SplashScreenActivity.access$getCredentials (SplashScreenActivity.java:10)
  at com.jenix.lemmi.ui.splashscreen.SplashScreenActivity$AsyncGetCredentials.doInBackground (SplashScreenActivity.java:10)
  at com.jenix.lemmi.ui.splashscreen.SplashScreenActivity$AsyncGetCredentials.doInBackground (SplashScreenActivity.java:10)
  at android.os.AsyncTask$3.call (AsyncTask.java:394)
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:305)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
  at java.lang.Thread.run (Thread.java:923)
From my understanding, it’s possibly due to Oauth credentials not matching - I’m using the SHA-1 signing key from the Play Console, so not sure what else i’m missing, Any ideas?
u

Umar Ata

11/16/2020, 6:09 PM
Well I also had similar issue some days ago I created a keystore and then uploaded its sha fingerprint in Google console and it was working until I not uploaded to Google Play, but I opted for Google sign apk so the fingerprints become different now when I run app that downloaded from Google Play it crashed so I updated the fingerprints from Google Play and used the app by downlading from Google Play and it works
2 Views