现在的位置: 首页 > 综合 > 正文

Flex Mobile on Android Emulator

2018年04月10日 ⁄ 综合 ⁄ 共 846字 ⁄ 字号 评论关闭

1、安装FB4.6
建议Google一份下载(标准做法是以从官网下载,但需要先注册个人信息,然后等待官方回应,但这需要很久)

2、安装Android3.2,创建模拟器
参见Android部分

3、在Android模拟器上安装最新的AIR
最新的AIR可以在 FlashBuilder  安装目录下获得 D:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\runtimes\air\android\emulator (我安装在了D盘)
此处参考:http://blog.csdn.net/zhiYU2008/article/details/6367188
这点很重要。Adobe官方推荐的做法是从Android Market上下载,但那需要真实的设备,于是我原来的做法是在网上下载了一份同版本的,结果运行AIR程序始终报错“Sorry...App stopped unexpectedly...”

4、创建Flex Mobile程序
参考http://www.adobe.com/devnet/flash-builder/articles/hello-world.html

5、创建证书
参考http://www.adobe.com/devnet/flash-builder/articles/hello-world.html

6、打包APK
参考http://cookbooks.adobe.com/post_Package_your_Adobe_AIR_Mobile_Applications_for_the-18112.html,需要有emulator参数

7、在模拟器上安装APK
和安装其他程序一样,用adb install命令

8、在模拟器上运行
和运行其他程序一样,只是要等一段时间。

以上最需要注意的是3、7,这些都是官网教程(http://www.adobe.com/devnet/flash-builder/articles/hello-world.html)里没有的。

抱歉!评论已关闭.