Flex 和 ANT:资源包错误

发布于 2024-11-01 00:15:14 字数 1540 浏览 4 评论 0原文

运行 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 技术交流群。

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

发布评论

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

评论(1

风柔一江水 2024-11-08 00:15:14

尝试一下:

<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.0/frameworks/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>

        </mxmlc>

此外,您还应该阅读有关如何正确执行此操作的教程

Try this:

<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.0/frameworks/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>

        </mxmlc>

Also, you should read this tutorial on how to do it properly.

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