【发布时间】:2011-02-24 23:07:02
【问题描述】:
我的适用于 Android 设备的 Adobe AIR 应用程序出现问题。在 PC 上运行 SWF 文件时,应用程序运行良好,我还在 adobe Device Central 中对此进行了测试,它按预期工作。当我将此应用程序安装到我的 HTC Desire HD 安卓设备时,我看到一个带有 5 个点的屏幕,看起来像是一个加载屏幕。
我检查了 logcat 看看发生了什么,似乎有几个参考错误。有人对如何解决这些问题有任何建议吗?
我使用以下命令创建了应用程序
adt -package -target apk-debug -storetype pkcs12 -keystore game.p12 game.apk game-app.xml game.swf icon36.png icon48.png icon72.png
这是我的xml文件的内容
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<application xmlns="http://ns.adobe.com/air/application/2.5">
<id>com.example.game</id>
<versionNumber>1.0.0</versionNumber>
<filename>game</filename>
<name>game</name>
<copyright>me</copyright>
<initialWindow>
<content>game.swf</content>
<visible>true</visible>
<fullScreen>true</fullScreen>
<autoOrients>false</autoOrients>
<aspectRatio>landscape</aspectRatio>
<renderMode>gpu</renderMode>
</initialWindow>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<icon>
<image36x36>icon36.png</image36x36>
<image48x48>icon48.png</image48x48>
<image72x72>icon72.png</image72x72>
</icon>
<android>
<manifestAdditions><![CDATA[<manifest>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
</manifest>
]]></manifestAdditions>
</android>
<versionLabel></versionLabel>
</application>
这是我的 logcat 的输出
I/air.com.example.game( 2623): rsl error!
I/air.com.example.game( 2623): numComplete 0
I/air.com.example.game( 2623): numFailed 0
I/air.com.example.game( 2623): numComplete 0
I/air.com.example.game( 2623): failedURLs:
I/air.com.example.game( 2623): http://fpdownload.adobe.com/pub/swz/tlf/1.0.0.595/textLayout_1.0.0.595.swz
I/air.com.example.game( 2623): textLayout_1.0.0.595.swz
I/air.com.example.game( 2623): VerifyError: Error #1014: Class flashx.textLayout.container::ContainerController could not be found.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable introScreen_18 is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable endScreen_1 is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable TextInput is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable TextInput_upSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable TextInput_disabledSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable focusRectSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_upSk
in is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_selectedUpSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_selectedOverSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_selectedDownSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_selectedDisabledSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_over
Skin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_emphasizedSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_down
Skin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Button_disabledSkin is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable ComponentShim is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Explosion i
s not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Laser is no
t defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Enemy is no
t defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Player is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Explode is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable Font_56 is not defined.
I/air.com.example.game( 2623):
I/air.com.example.game( 2623): ReferenceError: Error #1065: Variable MainTimeline is not defined.
I/air.com.example.game( 2623):
【问题讨论】:
标签: android actionscript-3 air flash-cs5