“无法解析资源包”尝试使用 IntelliJ IDEA 9.0.2 运行 FlexUnit4 测试时出错
我无法让 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Flex 库具有有时需要包含的资源包。我将
添加到构建路径,它为我修复了“无法解析资源包”错误。
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.
我也有同样的问题。我在另一个答案中看到了添加包含区域设置的路径的建议,尽管我的框架设置正确(并且我无法在 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":