Adobe Flex Builder 4 solves the problem of "cannot set zh_cn resolution resource bundle for the region"

Source: Internet
Author: User

 

This problem has been bothering me for several days. Last month, I got a flex 4 Project source file, when loaded to your new project, the question "cannot set zh_cn resolution resource bundle viewerstrings for the region" is displayed. After careful analysis, the problem lies in-locale.

Note: viewerstrings is A. properties file of mine, which is in the zh_cn folder of locale.

Solution: Open the project property and find "Additional compiler Parameters" in the flex compiler. The default value is-locale zh_cn (if the English version is-locale en_us );

The viewerstrings. properties file does not specify the resource path, so an error occurs,

In "Additional compiler Parameters", replace it with-locale zh_cn-source-Path = locale/{locale}-keep-all-type-selectors = true;

Note:-source-path specifies the resource path.

Start compilation to solve the problem.

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.