这是我用来构建android应用程序的命令。
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应用程序的命令,我已根据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
任何帮助将不胜感激。 感谢。
答案 0 :(得分:1)
根据flex compiler options,您可以看到' external-library-path '不会链接您的ANE文件。您应该使用' library-path '代替。