无法解析资源包“*”对于区域设置“en_US” (Flex、Flash 生成器)

发布于 2024-09-07 00:26:53 字数 741 浏览 14 评论 0原文

由于我在 Flex 中使用自定义皮肤类,因此在尝试在 Flash Builder 中打开设计视图时出现错误:

Description Resource Path Location Type

Unable to resolve resource bundle "components" for locale "en_US". 
Unable to resolve resource bundle "core" for locale "en_US". 
Unable to resolve resource bundle "effects" for locale "en_US". 
Unable to resolve resource bundle "layout" for locale "en_US". 
Unable to resolve resource bundle "skins" for locale "en_US". 
Unable to resolve resource bundle "styles" for locale "en_US". 

我尝试了很多在编译器参数中设置区域设置的方法 - 但我认为此错误与区域设置直接相关问题。当我检查 Flex 框架目录 "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\spark\src\spark" - 这是原始皮肤位于的类 - 我可以看到所有“丢失”的文件夹。

有人对这个问题有线索吗?

since I'm using custom skin classes in Flex I'm getting an error, when trying to open the design view in Flash Builder:

Description Resource Path Location Type

Unable to resolve resource bundle "components" for locale "en_US". 
Unable to resolve resource bundle "core" for locale "en_US". 
Unable to resolve resource bundle "effects" for locale "en_US". 
Unable to resolve resource bundle "layout" for locale "en_US". 
Unable to resolve resource bundle "skins" for locale "en_US". 
Unable to resolve resource bundle "styles" for locale "en_US". 

I tried a lot with setting locales in compiler arguments - but I thinks this error is directly related to a locale problem. When I check the flex framework directories "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\spark\src\spark" - here are the original skin classes located - I can see all the "missing" folders.

Anybody has a clue about that issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

折戟 2024-09-14 00:26:53

我可以通过将以下库路径添加到项目设置/Flex 构建路径来解决我的问题:

C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US

看起来 Flex 编译器在使用标准皮肤时知道该路径,但不知何故在处理自定义皮肤时找不到它。

I could solve my problem by adding following Library Path to the Project settings / Flex Build Path:

C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US

It seems that the Flex compiler knows the path when working with the standard skins but somehow it can't find it when dealing with custom skins.

祁梦 2024-09-14 00:26:53

如果出现此类问题,则意味着找不到您的文件路径

转到项目 -->属性-->Flex构建路径-->源路径-->添加文件夹--> locale\en_US

哪个文件错误显示在说明

此处是附加源文件夹可以添加到主源文件夹之外

If any issue like this type, means it can not found your file path

Go to Project --> Property-->Flex Build Path-->Source path-->Add Folder --> locale\en_US

which file error show on Description

here is additional source folder can be add outside of the main source folder

緦唸λ蓇 2024-09-14 00:26:53

除了前面的答案已经解决的问题之外,还有另一个可能的原因。

当 SDK 本身缺少所需的区域设置时,也会出现此错误。现有 SDK 语言环境列表可以在 SDK.INSTALL.DIR/sdks/VERSION.NO/frameworks/locale 中找到。如果所需的区域设置不存在,则需要使用copylocale命令创建它。

有关详细信息,请参阅创建新区域设置适用于支持 i18N 的应用程序

In addition to what the previous answers here already address, there is another possible cause.

This error appears also when a required locale is missing from the SDK itself. The list of existing SDK locales can be found at SDK.INSTALL.DIR/sdks/VERSION.NO/frameworks/locale. If a required locale is not there, then you need to create it with the copylocale command.

For more information, see Creating a new locale for i18N capable application.

落墨 2024-09-14 00:26:53

完全知道 Flex 已经死了,发布一个对我有用的答案,对那些不幸在 Flex 上工作以支持像我这样的旧项目的人来说:
我的数据管理资源包遇到了这个问题。
导航到 sdk 内的路径:“*\frameworks\locale\en_US”>在此文件夹中添加 *_rb.swc 文件。
干净的构建

With complete knowledge that Flex is dead, posting an answer that worked for me, for guys who have the misfortune of working on Flex to support old project like me:
I had this issue for datamanagement resource bundle.
Navigate to the path inside your sdk : "*\frameworks\locale\en_US" > Add the *_rb.swc file inside this folder.
Clean build

剩一世无双 2024-09-14 00:26:53

我在Flash Builder 4.5中也遇到过这个问题,并按如下方式解决。
1. 在 .flexConfig.xml 文件中,我注释了不需要的区域设置 -

<locale>
    <!--
    <locale-element>en_GB</locale-element>
    <locale-element>pt_BR</locale-element>
    -->
    <locale-element>en_US</locale-element>
</locale>

确保在“Flex Build Path\Source path”中具有以下条目 - “src\main\locales{locale}”。

然后无需在 Flex 编译器参数中添加“locale”选项。

谢谢

I have also faced the problem in Flash Builder 4.5 and resolved it as follows.
1. In the .flexConfig.xml file I have commented the unneeded locales -

<locale>
    <!--
    <locale-element>en_GB</locale-element>
    <locale-element>pt_BR</locale-element>
    -->
    <locale-element>en_US</locale-element>
</locale>

Make sure that in the "Flex Build Path\Source path" you have the following entry - "src\main\locales{locale}".

Then no need to add "locale" option in the Flex Compiler arguments.

Thanks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文