Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8358905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:57:30+00:00 2026-06-09T10:57:30+00:00

Hey Guys I Am really new to making apps and this a error that

  • 0

Hey Guys I Am really new to making apps and this a error that is occurring when i start my app. I would really be thankful if one of you could please tell me how to fix this problem step-by-step 🙂 Thank You, log:

   08-04 17:02:45.480: D/AndroidRuntime(464): Shutting down VM
   08-04 17:02:45.480: W/dalvikvm(464): threadid=1: thread exiting with uncaught exception (group=0x40015560)
   08-04 17:02:45.499: E/AndroidRuntime(464): FATAL EXCEPTION: main
   08-04 17:02:45.499: E/AndroidRuntime(464): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dice.alt/com.dice.alt.DiceAlternativeActivity}: java.lang.ClassCastException: android.widget.TextView
   08-04 17:02:45.499: E/AndroidRuntime(464):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
   08-04 17:02:45.499: E/AndroidRuntime(464):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
   08-04 17:02:45.499: E/AndroidRuntime(464):   at android.app.ActivityThread.access$1500(ActivityThread.java:117)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at android.os.Handler.dispatchMessage(Handler.java:99)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at android.os.Looper.loop(Looper.java:123)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at android.app.ActivityThread.main(ActivityThread.java:3683)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at java.lang.reflect.Method.invokeNative(Native Method)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at java.lang.reflect.Method.invoke(Method.java:507)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at dalvik.system.NativeStart.main(Native Method)
  08-04 17:02:45.499: E/AndroidRuntime(464): Caused by: java.lang.ClassCastException: android.widget.TextView
  08-04 17:02:45.499: E/AndroidRuntime(464):    at com.dice.alt.DiceAlternativeActivity.onCreate(DiceAlternativeActivity.java:20)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  08-04 17:02:45.499: E/AndroidRuntime(464):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
  08-04 17:02:45.499: E/AndroidRuntime(464):    ... 11 more
  08-04 17:02:48.179: I/Process(464): Sending signal. PID: 464 SIG: 9</i>'

XML :

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/android:list"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >

    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="409dp"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/textView1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/ndice"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="#4876FF" />

        <EditText
            android:id="@+id/editText1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="number"
            android:text="@string/empty" >

            <requestFocus />
        </EditText>

        <TextView
            android:id="@+id/textView2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/udice"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="#4876FF" />

        <EditText
            android:id="@+id/editText2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ems="10"
            android:inputType="number"
            android:text="@string/empty" />

        <Button
            android:id="@+id/button1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/result" />

        <TextView
            android:id="@+id/op"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="#DC143C"
            android:layout_weight="0.54"
            android:text="@string/empty"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <TextView
            android:id="@+id/textView3"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/ABJ2"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="#32CD32" />

    </LinearLayout>
</ScrollView>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:57:31+00:00Added an answer on June 9, 2026 at 10:57 am

    Caused by: java.lang.ClassCastException: android.widget.TextView

    – This above line in your Log suggests that there is an exception while trying to cast a variable of one type to an incompatible type.

    – You are either trying to cast something incompatible to TextView type variable, or you are casting TextView to an incompatible type.

    Eg:

    Button b = (TextView)findViewById(R.id.mbut);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys! I'm new to C, so i would like help in one problem.
Hey guys, I'm getting a really strange error. I have a program that needs
hey guys, i spent some time on this one but i find it really
Hey guys, I couldn't really think of what to call this error in the
hey guys having this really simple problem but cant seem to figure out have
hey guys, this might be really stupid, but hopefully someone can help. I'm trying
Hey guys really quick question, I have a simple test that I was doing
Hey guys I am new to android development, I am currently making an application.The
Hey guys i am currently working on an android app that will allow me
Hey guys, my app crashes upon load and it throws up this when debugging:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.