2

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

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

所以我检查了 build.xml 是否正确设置了路径元素:

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

这对于正常的构建过程非常有效。因此,我很困惑,并会感谢任何有助于让测试运行的想法。

4

2 回答 2

2

Flex 库具有有时需要包含的资源包。我添加了

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

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

于 2010-11-29T17:43:13.533 回答
0

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

于 2011-05-05T21:09:10.610 回答