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

  • Home
  • SEARCH
  • 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 7417155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:38:39+00:00 2026-05-29T07:38:39+00:00

In my layout I renamed all the controls from their defaults (all from Eclipse

  • 0

In my layout I renamed all the controls from their defaults (all from Eclipse gui), however I noticed my R.java file didn’t have the correct id constants so I ran a project clean and after saving, it re-generated it correctly*.

However, when I am trying to reference an id that exists, e.g. android:layout_alignLeft=”@id/selectKey”:

  1. If I type it into the xml by hand I get ‘resource not found’ from the compiler despite it being in the R.java and being the actual name of the control that I gave it.

  2. If I try and update the same property using Eclipse when I expand ‘ID’ from the dialog box it still contains a list of the original names only and not the new ones I gave it (and as named in the R.java file)

How can I fix this? It seems that something is not syncing correctly.

*btw, I don’t know if this is a bug but after I cleaned the project it removed the R.java file but then refused to recreate the R.java because my code referenced the R object which didn’t exist. In the end I had to comment out every reference to R in my code just so it would regenerate the R.java file. So it’s a case of R being created relying on compiler succession yet compiler succession relying on R being there.

  • 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-05-29T07:38:40+00:00Added an answer on May 29, 2026 at 7:38 am

    If Project -> Clean does not work. You can delete the “gen” folder (the horror). Eclipse will then rebuild it for you.

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

Sidebar

Related Questions

What java GUI layout manager does everyone use? Lately, I have been using MigLayout
I copied a .java class and .xml layout. I thought I renamed everything in
We have a central repo with 20 branches, they all use layout like: /.gitignore
I have a layout which uses min-width and works great. So I came to
my layout's requirement is to keep all thumbnails at 80px height, not higher, not
Graphical Layout tab does not appear for some layout files into Eclipse I tried
I have a linear layout that contains 6 images, which span the linear layout
I'm using an Omega child theme. I've renamed and renamed all the functions. I'm
My layout looks like: <TableLayout> <TableRow></TableRow> <TableLayout> <TableRow></TableRow> <TableRow></TableRow> <TableRow></TableRow> </TableLayout> </TableLayout> I have
Android layout xml file has android: prefix with every attribute. is there any solution

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.