Flex 和 ANT:资源包错误
运行 ANT 脚本时出现以下错误:
错误:无法解析语言环境“en_US”的资源包“数据”
我已尝试实现我找到的有关此问题的所有答案(而且有很多答案);强制编译到 Flash Player 10,包括所有库等。但没有任何效果。
这是我的代码:
<mxmlc
file="${PALM_SRC_DIR}/PALM.mxml"
output="${SHELL_DIR}/PALM.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
locale="${LOCALE}"
link-report="${OUT_DIR}"
target-player="10.0.0">
<load-config filename="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0frameworks/flex-config.xml" />
<source-path path-element="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0/frameworks" />
<compiler.include-libraries
append="true"
dir="${basedir}/libs
<include name="Cairngorm.swc"/>
<include name="CairngormEnterprise.swc"/>
<include name="fds.swc"/>
<include name="flexlib.swc"/>
</compiler.include-libraries>
<runtime-shared-library-path
path-element="${FLEX_FRAMEWORK}/framework.swc">
<url rsl-url="framework_3.5.0.12683.swz"/>
<url rsl-url="framework_3.5.0.12683.swf"/>
</runtime-shared-library-path>
</mxmlc>
我可能会丢失什么?我不是包含了我需要的所有库吗?
我删除了最后 2 个 compiler.library-path 选项并将其替换为: 它仍然无法工作,但我觉得我编码正确,因为它正在寻找框架 SWC 作为运行时共享库,而它确实是这样。
I get the following error when running my ANT script:
Error: Unable to resolve resource bundle "data" for locale "en_US"
I have tried to implement all the answers I've found about this question (and there were a lot); forcing to compile to flash player 10, including all libraries, etc.. but nothing is working.
Here is my code:
<mxmlc
file="${PALM_SRC_DIR}/PALM.mxml"
output="${SHELL_DIR}/PALM.swf"
debug="${DEBUG}"
optimize="${OPTIMIZE}"
locale="${LOCALE}"
link-report="${OUT_DIR}"
target-player="10.0.0">
<load-config filename="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0frameworks/flex-config.xml" />
<source-path path-element="C:/Program Files/Adobe/Adobe Flash Builder 4 Plug-in/sdks/3.5.0/frameworks" />
<compiler.include-libraries
append="true"
dir="${basedir}/libs
<include name="Cairngorm.swc"/>
<include name="CairngormEnterprise.swc"/>
<include name="fds.swc"/>
<include name="flexlib.swc"/>
</compiler.include-libraries>
<runtime-shared-library-path
path-element="${FLEX_FRAMEWORK}/framework.swc">
<url rsl-url="framework_3.5.0.12683.swz"/>
<url rsl-url="framework_3.5.0.12683.swf"/>
</runtime-shared-library-path>
</mxmlc>
what could I possibly be missing? Aren't I including all libs that I need?
I've removed the last 2 compiler.library-path options and replaced it with this:
It's still not working but I feel like I'm coding it correctly because it's looking for the framework SWC as run-time shared library, which it really is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试一下:
此外,您还应该阅读有关如何正确执行此操作的教程。
Try this:
Also, you should read this tutorial on how to do it properly.