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 8486273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:53:46+00:00 2026-06-10T20:53:46+00:00

Just made a change to my layout.xml Everything compiles and then I got a

  • 0

Just made a change to my layout.xml Everything compiles and then I got a weird error back saying can’t cast a TextView to ImageView. Another change and I got a weird error saying cannot cast THE SAME TextView to a LinearLayout??? It turns out although everything may compile fine, sometimes if you don’t do a clean project your TextView widget might just be pointing to a RelativeLayout!!! Does anyone know why?

  • 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-10T20:53:48+00:00Added an answer on June 10, 2026 at 8:53 pm

    So here’s why:

    You might have seen the file R.java in the gen folder.

    Open that file up.

    It contains memory addresses and identifiers for all the (R)esources.

    When you change your layout files, these memory addresses become outdated and point to the wrong view element. A clean/build will delete the R.java file and recreate it, and is a necessary step after changing views.

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

Sidebar

Related Questions

I just publish an asp.net website then i made changes in its source code
I have a large .sln file with many projects. I just made a change
So I just made a change password form for my rails app. It's just
A few days ago it was just fine. I haven't made any change to
I'm using TortoiseSVN. I just made quite a few changes to my working copy
Say you just want to get rid of the changes you've made to one
I just made my first .net website. I'm trying to use the following line
I just made my first website , and I notice that the elements start
I just made a transaction go through but not sure where there is a
I was just made aware of a bug I introduced, the thing that surprised

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.