Android Eclipse Android Project missing R file workaround

Source: Internet
Author: User

In the development of eclipse, always lack of r files for no reason, so that the whole project is scrapped, after the online search for information and now do a tidy.


1. Right-click your Android project-->android Tools-->fix project Properties.

2, clean up the project: Use the menu project-->clean--> Select the items that need to be cleaned


This is the simplest way, but I don't think it's an egg.

The primary r file is missing because of an error in applying XML. So please carefully check your XML file There are no reference errors, such as XML file name is not all lowercase ...


General R file is missing the performance is login_btn= (TextView) Findviewbyid (r.id.login_textview_finish), such as the code, R below the red line, then if you import a

Android. R goes in, and then it's the red line behind the login_textview_finish. This is not right, you first have to delete the import ANDROID.R first.

Then right-click on the project, Properties--java Build Path---Look inside you have not imported some of the mess jar, there is no duplicate guide jar, the useless deleted.

Then clear, the problem should be solved.


There is a legendary big trick, just find a project, copy its R file. However, I also feel that this method does not use any eggs ...


There is any good solution, everyone please private messages I ...

In fact, I am a small white one, above just for reference, what error please the big God Spur.



Android Eclipse Android Project missing R file workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.