Android4.4 new Internal Resource compilation problem in the framework

Source: Internet
Author: User

If you add internal resources to frameworks and use similar forms to reference resources in Java code: COM.ANDROID.INTERNAL.R.LAYOUT.XXX, you need to frameworks/base/core/res/res/ Add the corresponding entry in the Value/symbols.xml.

If it is a layout resource, you need to add an entry similar to the following:

This will allow the compilation to pass.

BTW, Android provides a script to discover the new private resources,

Script Name: makejavasymbols.sed

Script path: frameworks/base/core/res/

Script use: Make Framework 2>&1 | Sed-n-F makejavasymbols.sed | Sort–u

This command lists the new private resources and copies them to the Symbols.xml .

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.