java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testgoogleapi/com.example.testgoogleapi.ActivityMain}: java.lang.IllegalStateException: Must not set scopes in GoogleApiClient.Builder when using Auth.GOOGLE_SIGN_IN_API. Set account in GoogleSignInOptions.Builder instead.

Stack Overflow | 2 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

    Can Google Drive Android Drive.API Android be combined with other API's?

    Stack Overflow | 2 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testgoogleapi/com.example.testgoogleapi.ActivityMain}: java.lang.IllegalStateException: Must not set scopes in GoogleApiClient.Builder when using Auth.GOOGLE_SIGN_IN_API. Set account in GoogleSignInOptions.Builder instead.
  2. 0

    How to use Google API after adding Google sign in to my android app?

    Stack Overflow | 1 month ago | CodePLeX
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mette.googleapitest/com.example.mette.googleapitest.MainActivity}: java.lang.IllegalStateException: Must not set scopes in GoogleApiClient.Builder when using Auth.GOOGLE_SIGN_IN_API. Set account in GoogleSignInOptions.Builder instead.
  3. 0

    Crash on Huawei Protected Apps dialog

    GitHub | 12 months ago | daniele-athome
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.kontalk/org.kontalk.ui.ConversationsActivity}: java.lang.IllegalStateException: You cannot use customView() when you have content set.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Parcelable:Class not found when unmarshalling error, on Rotation of my fragments

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ictcsu.testapp1/com.ictcsu.viewdata.Activity_Viewdata}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.ictcsu.DatabaseClasses.sentdata
  6. 0

    Null pointer exception on MapView

    Stack Overflow | 3 years ago | Jaison Brooks
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.testing.googlemaps/com.testing.googlemaps.ActivityMAIN}: java.lang.NullPointerException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Must not set scopes in GoogleApiClient.Builder when using Auth.GOOGLE_SIGN_IN_API. Set account in GoogleSignInOptions.Builder instead.

    at com.google.android.gms.common.internal.zzx.zza()
  2. com.google.android
    GoogleApiClient$Builder.build
    1. com.google.android.gms.common.internal.zzx.zza(Unknown Source)
    2. com.google.android.gms.common.api.GoogleApiClient$Builder.zzoZ(Unknown Source)
    3. com.google.android.gms.common.api.GoogleApiClient$Builder.build(Unknown Source)
    3 frames
  3. com.example.testgoogleapi
    ActivityMain.onCreate
    1. com.example.testgoogleapi.ActivityMain.buildGoogleApiClient(ActivityMain.java:81)
    2. com.example.testgoogleapi.ActivityMain.onCreate(ActivityMain.java:458)
    2 frames
  4. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5206)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
    5. android.app.ActivityThread.access$700(ActivityThread.java:140)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:4921)
    9 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame