java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.googlelogin/com.example.android.googlelogin.MainActivity}: java.lang.ClassCastException: com.example.android.googlelogin.MainActivity cannot be cast to com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by McFiddlyWiddly
, 1 year ago
Unable to start activity ComponentInfo{com.example.android.googlelogin/com.example.android.googlelogin.MainActivity}: java.lang.ClassCastException: com.example.android.googlelogin.MainActivity cannot be cast to com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener
via GitHub by mvarnagiris
, 1 year ago
Unable to start activity ComponentInfo{com.emoticast.tunemoji.android.debug/com.emoticast.tunemoji.feature.main.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.LinearLayoutManager$SavedState cannot be cast to com.beloo.widget.chipslayoutmanager.ParcelableContainer
via GitHub by li13738051517
, 7 months ago
Unable to start activity ComponentInfo{com.rckd/com.darsh.multipleimageselect.activities.AlbumSelectActivity}: java.lang.ClassCastException: android.support.design.widget.AppBarLayout cannot be cast to android.support.v7.widget.Toolbar
via GitHub by robertsimoes
, 8 months ago
Unable to start activity ComponentInfo{com.pressurelabs.posture/com.pressurelabs.posture.MainActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to com.pressurelabs.posture.App
via Stack Overflow by Teo Chuen Wei Bryan
, 2 years ago
Unable to start activity ComponentInfo{com.example.testproject/com.example.testproject.Report}: java.lang.ClassCastException: android.app.Application cannot be cast to com.example.testproject.StorageApplication
via Stack Overflow by Timmiej93
, 1 year ago
Unable to start activity ComponentInfo{com.example.tim.timapp/com.example.tim.timapp.MainActivity}: java.lang.ClassCastException: android.support.design.internal.NavigationMenuPresenter$NavigationMenuSeparatorItem cannot be cast to android.support.design.internal.NavigationMenuPresenter$NavigationMenuTextItem
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.googlelogin/com.example.android.googlelogin.MainActivity}: java.lang.ClassCastException: com.example.android.googlelogin.MainActivity cannot be cast to com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Users with the same issue

66 times, 3 weeks ago
Once, 2 months ago
33 times, 3 months ago
8 times, 3 months ago
468 times, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.