Naughty r file, vile space

Source: Internet
Author: User

Graduation nearly a year, due to the company's business needs, development of the post I did a year of testing. Recently, the development has finally started. So work with small partners to make a memo apk. Because the previous is to do Java, and almost a year did not touch the code (this year mainly to do testing, although there are writing automated test scripts, but not the sense of real code), so many bad ah.

Well, don't say a word, to record a little problem I have today, and how to solve it.

Today I wrote a detail page, and when I went to write the corresponding activity, I found that r file was missing. So it is customary to use several ways to solve:

1, check res all the resources file name has no capital letters;

2, select the project, click Project-clean, clean up the project;

3, select the project, right-click the Android Tools-fix Project Properties;

4, Project--Build automatically check not selected all try;

5, go to the project directory, manually delete gen, and then go to project refresh a bit;

6. Check the XML file for any syntax errors or not to add the necessary property configuration.

After the above six steps, found that there is no problem, and feel before clearly is good, later in the V7 bag tangled for a long time, or found unable to solve the problem. So I put it, ate a meal, and asked an experienced friend, he said to look at the XML file, when I went to see if there is a syntax error inside the newly added XML file. There is a vile space in front of the XML. It feels like a bolt from the blue and like a spring breeze ....

The ancients said, Nevermore future. This small mistake, let me reflect on my own lack of rigor and encounter problems too impatient, did not spend too much time to analyze the problem, but very eager to solve the problem. Remember, after encountering problems, we must calmly analyze and then want to solve the problem, and can not take it for granted.

Naughty r file, vile space

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.