java.lang.RuntimeException: Unable to start activity ComponentInfo{co5025.example.com.week10/co5025.example.com.week10.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatEditText cannot be cast to android.widget.Button

Stack Overflow | 1621656 | 2 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.ClassCastException: cannot be cast to android.widget.Button

    Stack Overflow | 2 months ago | 1621656
    java.lang.RuntimeException: Unable to start activity ComponentInfo{co5025.example.com.week10/co5025.example.com.week10.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatEditText cannot be cast to android.widget.Button
  2. 0

    java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.support.v7.widget.RecyclerView

    Stack Overflow | 2 months ago | Nikit Bhandari
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.nikit.phyprac4/com.example.nikit.phyprac4.ui.MainActivity}: java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.support.v7.widget.RecyclerView
  3. 0

    showing error while running the app

    Stack Overflow | 2 months ago | shivi shah
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.vicky.project/com.example.vicky.project.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.EditText
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unfortunately ,MyApp has stopped

    Stack Overflow | 11 months ago | Pøwêr Ôf Eńgîñèěrs
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.bharathi.m_box/com.example.bharathi.m_box.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.RecyclerView cannot be cast to android.widget.ListView
  6. 0

    ImageButton cannot be cast to android.widget.Edittext

    Stack Overflow | 3 years ago | user2636390
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.markitberry/com.example.markitberry.Login}: java.lang.ClassCastException: android.widget.ImageButton cannot be cast to android.widget.EditText

  1. Indri Yunita 7 times, last 2 months ago
  2. andreeaa marin 184 times, last 3 months ago
  3. Reich 59 times, last 4 months ago
  4. gamebusterz 42 times, last 1 month ago
  5. Emrah Küçük 3 times, last 4 months ago
42 more registered users
14 unregistered visitors
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.RuntimeException

    Unable to start activity ComponentInfo{co5025.example.com.week10/co5025.example.com.week10.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.AppCompatEditText cannot be cast to android.widget.Button

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
    2 frames