【发布时间】:2011-05-06 13:55:22
【问题描述】:
当尝试使用 flex builder 为 android 构建 AIR 应用程序时,我执行了以下步骤。请告诉我错误发生在哪里
1.使用flex builder创建Air应用程序,生成两种文件.swf和.xml文件和认证文件
2.使用“Package assistant pro”从上述文件创建apk文件
3. 然后我在我的模拟器中安装了 AIR 2.5 运行时
4.之后,我尝试安装从“package assistant pro”创建的 apk 文件,然后我尝试使用命令提示符安装 apk 文件,然后它显示此错误 “INSTATION FAILED INVALLID APK”。而且我也无法安装其他显示相同错误的 apk 文件(从网站下载的 Android 应用程序 apk 文件的示例空气)
我成功安装了其他应用的(Say for printing hello world) apk 文件
enter code here
包装 { 导入 flash.display.Sprite; 导入 flash.text.TextField;
public class AndroidAndFlex extends Sprite
{
public function AndroidAndFlex()
{
var textField:TextField = new TextField();
textField.text = "Hello World";
stage.addChild(textField);
}
}
}
xml文件
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<id>AndroidAndFlex</id>
<filename>AndroidAndFlex</filename>
<name>AndroidAndFlex</name>
<
<versionNumber>1.0.0</versionNumber>
<initialWindow>
<content>AndroidAndFlex.swf</content>
<visible>true</visible>
</initialWindow>
<supportedProfiles>mobileDevice</supportedProfiles>
<android>
<manifestAdditions>
<![CDATA[
<manifest android:installLocation="auto">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-configuration android:reqFiveWayNav="true"/>
<uses-feature android:required="false" android:name="android.hardware.touchscreen.multitouch"/>
<application android:enabled="true">
<activity android:excludeFromRecents="false">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
]]>
</manifestAdditions>
</android>
请帮帮我
提前致谢
【问题讨论】:
-
感谢您的回复,实际上我使用的是 AIR 2.5,这是 Q 上的一个错误,您能否给出一个正确的方向来做到这一点............
标签: android apache-flex flash air flash-builder