After you modify the XML resources of the application under Android packages/apps source code, the system prompts "No symbol is found ".

Source: Internet
Author: User

Recently, to modify the settings in the packages/apps directory, you need to add some functions. The code to be added is simulated on Eclipse, so it is moved to the android SDK source code.

 

Two problems occurred:

1)

The "@ override" overwrites the code written by eclipse in the window and prompts incorrect use of the "@ override" Overwrite method during compilation in the Linux Command Line, the same file appears several times "@ override", but this error is prompted only in two of them. I can remove the two.

 

2)

In addition, to use new string Resources in the code, you need to modify packages/apps/settings/RES/Values-ZH-RCN/string. XML and packages/apps/settings/RES/values/string. XML file.

After compilation, the Java code prompts "the symbol cannot be found". At first, the Code thought it was not generated into the out/target/common/R/COM/Android/settings/R. in the Java file, it is opened later and the packages/apps/settings/RES/XML/wireless_settings.xml file uses the same string resource, but no error is prompted.

 

Finally, we can solve the problem of importing two resource packages in the newly written Java file:

 

Import com. Android. settings. R;

Import com. Android. settings. R .*;

 

Previously, these two packages were not imported because it seems that there is no Java file in the original code that needs to be imported. The project resource package under eclipse is automatically imported by default. I still don't understand this problem!

 

Keywords:

After you modify the XML resources of the application under Android packages/apps source code, the system prompts "No symbol is found,

Modify the Android settings project and call the XML resource file in Linux

 

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.