java.lang.RuntimeException: Unable to start activity ComponentInfo{flash4life.gespant2015.com.flashreflex20/flash4life.gespant2015.com.flashreflex20.MainActivity}: java.lang.ClassCastException: com.google.android.gms.common.SignInButton cannot be cast to android.widget.Button

Stack Overflow | Grant Espanet | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Google Button "cannot be cast to android.widget.Button"

    Stack Overflow | 6 months ago | Grant Espanet
    java.lang.RuntimeException: Unable to start activity ComponentInfo{flash4life.gespant2015.com.flashreflex20/flash4life.gespant2015.com.flashreflex20.MainActivity}: java.lang.ClassCastException: com.google.android.gms.common.SignInButton cannot be cast to android.widget.Button

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.google.android.gms.common.SignInButton cannot be cast to android.widget.Button

      at flash4life.gespant2015.com.flashreflex20.MainActivity.onCreate()
    2. flash4life.gespant2015.com
      MainActivity.onCreate
      1. flash4life.gespant2015.com.flashreflex20.MainActivity.onCreate(MainActivity.java:107)
      1 frame
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6877)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3208)
      3 frames