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

Solutions on the web

via GitHub by frief
, 1 year ago
Unable to start activity ComponentInfo{org.servalproject/org.servalproject.wizard.Wizard}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
via Stack Overflow by deception1
, 2 years ago
Unable to start activity ComponentInfo{com.example/com.example.Access}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
via Stack Overflow by hevele
, 2 years ago
Unable to start activity ComponentInfo{com.example.googlesearch/com.example.googlesearch.MainActivity}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
via Stack Overflow by PepinCZ
, 2 years ago
Unable to start activity ComponentInfo{cz.miegl.stopky/cz.miegl.stopky.MainActivity}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
via Stack Overflow by Adariel Lzinski
, 1 year ago
Unable to start activity ComponentInfo{com.example.intent_buttontests/com.example.intent_buttontests.PlayScreen}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
via Stack Overflow by user2125722
, 2 years ago
Unable to start activity ComponentInfo{tutorial.example.tutorial/tutorial.example.tutorial.Startingpoint}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.servalproject/org.servalproject.wizard.Wizard}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2185) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2210) at android.app.ActivityThread.access$600(ActivityThread.java:142) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1208) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4931) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558) at dalvik.system.NativeStart.main(Native Method)Caused by: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.Button at org.servalproject.wizard.Wizard.onCreate(Wizard.java:40) at android.app.Activity.performCreate(Activity.java:5008) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2139) ... 11 more