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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:54:31+00:00 2026-06-11T01:54:31+00:00

I just finished debugging one of my apps because I was having issues with

  • 0

I just finished debugging one of my apps because I was having issues with R.layout.

Naturally, I went to my .xml files and cleaned up a few errors and everything should have been fine, but it wasn’t.

For some reason, I was still getting an error with R.layout saying that my .xml files could not be resolved to a type.

As soon as I deleted the import android.R statement, everything went away and my program compiled correctly.

To my knowledge this is the opposite of what people are saying to do in this situation. Normally they tell you to ADD that statement in to eliminate any errors, but mine was the opposite. Does anyone have any insight as to why this happens so that when this inevitably happens again I won’t have to spend as much time on it?

Thanks all!

  • 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-11T01:54:33+00:00Added an answer on June 11, 2026 at 1:54 am

    You are importing an R that doesn’t contain your application’s layout resources. You are instead importing the Android framework’s R, thus causing a name collision. There are, however, situations in which you may need android.R. In these cases, you shouldn’t import android.R, but instead explicitly use android.R.[whatever] when you need it.

    Your application has it’s own R which contains most of your application’s resources.

    android.R contains a variety of Android framework resources.

    There is more information on the R class in the Android: What is R? question.

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

Sidebar

Related Questions

I just finished converting one of our in-house framework projects from ant to maven.
I just finished a script to import data from an XML file to MySQL,
I just finished debugging a problem, where our program crashed on a production server,
I've just finished a six hour debugging session for a weird UI effect where
I just finished a computer organization course, in which we learned that all files
Hi I have just finished debugging my first application and want to publish it.
Just finished reading this blog post: http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/ In it, the author argues the case
Just finished up my first mvc4 app. Everything is working great until I deploy
Just finished reading Jon Skeet's article about events and delegates and got a question.
I just finished reading the HTML5 Developer's Cookbook and have a question. I've read

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.