“无法解析资源包”尝试使用 IntelliJ IDEA 9.0.2 运行 FlexUnit4 测试时出错

发布于 2024-09-05 03:58:56 字数 333 浏览 2 评论 0原文

我无法让 IntelliJ IDEA 9.0.2 运行 FlexUnit4 测试。由于以下错误,将不会执行测试:

Error: Unable to resolve resource bundle "<some name>"

因此,我检查了 build.xml 路径元素是否设置正确:

<path-element>resources/locale/{locale}</path-element>

这对于正常的构建过程来说非常正常。因此,我很困惑,并且希望有任何有助于运行测试的想法。

I am having a trouble to get IntelliJ IDEA 9.0.2 to run FlexUnit4 tests. The tests won't be performed because of the following error:

Error: Unable to resolve resource bundle "<some name>"

So I checked the build.xml whether the path-elements are set properly:

<path-element>resources/locale/{locale}</path-element>

This is working for the normal build process perfectly fine. Therefore, I am pretty confused and would appreciate any ideas that help to get the tests to run.

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

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

发布评论

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

评论(2

战皆罪 2024-09-12 03:58:56

Flex 库具有有时需要包含的资源包。我将

/sdks/4.1.0/frameworks/locale/en_US

添加到构建路径,它为我修复了“无法解析资源包”错误。

The Flex libraries have resource bundles that sometimes need to be included. I added

<Flex_SDK_location>/sdks/4.1.0/frameworks/locale/en_US

to the build path and it fixed an "Unable to resolve resource bundle" error for me.

冰火雁神 2024-09-12 03:58:56

我也有同样的问题。我在另一个答案中看到了添加包含区域设置的路径的建议,尽管我的框架设置正确(并且我无法在 IntelliJ 配置中手动编辑任何构建路径),但它确实导致了我的问题。

转到模块中的“Flex”Facet,然后单击高级选项卡。问题是,如果非默认区域设置被选中并为空,那么它就无法组合正确的路径并找到您的框架。

要修复此问题,只需取消“非默认区域设置”:

在此处输入图像描述

I had this same problem. I saw the suggestion in the other answer to add a path with the locale in it, and though my framework was set up correctly (and I couldn't manually edit any build path in the IntelliJ configuration), it did lead me to the problem.

Go to the "Flex" Facet in the module and click onto the Advanced tab. The problem is if the Non-default locale settings is checked and blank, then it doesn't assemble the correct path and find your framework.

To fix it, simply uncheck the "Non-default locale settings":

enter image description here

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