本文介绍了mxmlc 在命令行构建期间不包含 *.ane 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我用来构建 Android 应用程序的命令.

Here is the command that I am using to build an android application.

mxmlc
+configname=airmobile
-output Example.swf
-locale=en_US -source-path+=D:\fb_projects\Example\localeB\{locale}
-library-path+=D:\fb_projects\Example\libs
-source-path+=D:\fb_projects\Example\src
-external-library-path+=D:\fb_projects\Example\extensions\android.ane
-- D:\fb_projects\Example\src\Example.mxml

更新:

请检查我现在用来构建/编译我的 flex android 应用程序的命令,我已经根据转储配置修改了命令

Please check the command that i am using now to build/compile my flex android application , I have modified the command as per dump config

mxmlc
+configname=airmobile
-output Example.swf
-locale=en_Eng
-source-path+=
    D:\fb_projects\Example\localeB\{locale}
-source-path+=
    D:\fb_projects\Example\src,
    D:\fb_projects\Example\assets,
    D:\fb_projects\Example\extensions,
    D:\fb_projects\Example\localeB
–library-path+=
    C:\AIR21\frameworks\libs\authoringsupport.swc,
    C:\AIR21\frameworks\libs\charts.swc,
    C:\AIR21\frameworks\libs\flash-integration.swc,
    C:\AIR21\frameworks\libs\framework.swc,
    C:\AIR21\frameworks\libs\osmf.swc,
    C:\AIR21\frameworks\libs\rpc.swc,
    C:\AIR21\frameworks\libs\spark.swc,
    C:\AIR21\frameworks\libs\textLayout.swc,
    C:\AIR21\frameworks\libs\mobile\mobilecomponents.swc,
    C:\AIR21\frameworks\libs\air\servicemonitor.swc,
    C:\AIR21\frameworks\locale\en_Eng\advancedgrids_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\airframework_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\automation_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\charts_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\framework_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\mx_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\osmf_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\rpc_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\spark_rb.swc,
    C:\AIR21\frameworks\locale\en_Eng\textLayout_rb.swc,
    D:\fb_projects\Example\libs\ButtonComponent.swc,
    D:\fb_projects\Example\libs\controlAcceptor_swc.swc,
    D:\fb_projects\Example\libs\fileItem_swc.swc,
    D:\fb_projects\Example\libs\GraphAPI_Mobile.swc,
    D:\fb_projects\Example\libs\mcSearchNoResult.swc,
    D:\fb_projects\Example\libs\PureMVC_AS3_2_0_4.swc,
    D:\fb_projects\Example\libs\search_swc.swc,
    C:\AIR21\frameworks\themes\Mobile\mobile.swc
-namespace
    http://ns.adobe.com/mxml/2009 C:\AIR21\frameworks\mxml-2009-manifest.xml
-namespace
    library://ns.adobe.com/flex/spark C:\AIR21\frameworks\spark-manifest.xml
-external-library-path+=
    C:\AIR21\frameworks\libs\air\airglobal.swc
-library-path+=
    D:\fb_projects\Example\extensions\android.ane
-- D:\fb_projects\Example\src\Example.mxml

ADT 命令:

adt
 -package -target apk
 -storetype pkcs12 -keystore android.p12 -keypass password
 Example.apk Example-app.xml Example.swf
 icons

任何帮助将不胜感激.谢谢.

Any help would be appreciated.Thanks.

推荐答案

根据 flex 编译器选项 您可以看到external-library-path"不会链接您的 ANE 文件.您应该改用library-path".

As per the flex compiler options you can see that 'external-library-path' will not link your ANE file. You should use 'library-path' instead.

这篇关于mxmlc 在命令行构建期间不包含 *.ane 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 04:26