每个 Android 应用程序都会意外关闭

发布于 12-04 07:34 字数 242 浏览 5 评论 0原文

我开始为 Android 构建一个应用程序,并使用 flash builder 4.5.1 通过 USB 对其进行调试,但过了一会儿,它在我的 Android 机器上显示“应用程序意外关闭”。 奇怪的是,它并没有崩溃。它只是说它崩溃了,但是当我单击“强制关闭”时,它只是像正常一样继续运行。

我只是尝试调试一个全新的 Flex 移动项目,没有任何编码,几秒钟后它也说它意外停止了。

我不知道我是否做错了什么,或者这里是否发生了更大的事情。

I started building an app for android and debugging it through usb using flash builder 4.5.1, but after a while it said "the app was closed unexpectedly" on my android machine.
The strange thing is, it doesn't crash. It just says it's crashing, but when I click 'force close', it just keeps running like normal.

I just tried to debug a brand new flex mobile project, without any coding, and after a couple of seconds it also said it had stopped unexpectedly.

I have no idea if I'm doing something wrong, or if somthing bigger is going on here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疏忽2024-12-11 07:34:16

我发现在这方面使用trace 或Alert.show 很有帮助,因为暂停应用程序状态太久可能会导致问题。

我使用自定义警报 - 提供示例

<fx:Declarations>
    <fx:Component className="AlertMsg">
        <s:SkinnablePopUpContainer x="70" y="300">
            <s:TitleWindow title="My Message" close="close()">
                <s:VGroup horizontalAlign="center" paddingTop="8" paddingBottom="8" paddingLeft="8" paddingRight="8" gap="5" width="100%">
                    <s:Label text="My alert message text here..."/>
                    <s:Button label="OK" click="close()"/>
                </s:VGroup>
            </s:TitleWindow>
        </s:SkinnablePopUpContainer>
    </fx:Component>
</fx:Declarations>

<s:layout>
    <s:VerticalLayout paddingTop="5" paddingBottom="5" paddingLeft="5" paddingRight="5" gap="10"
                      horizontalAlign="center" verticalAlign="top"/>
</s:layout>

<s:TextArea text="This sample shows how you can display a simple alert message in a mobile application using the Spark SkinnablePopUpContainer. The mx.controls.Alert is not recommended for mobile."
            width="98%" editable="false"/>
<s:Button label="Show Alert" click="(new AlertMsg()).open(this, false)"/>

I found the use of trace or Alert.show to be helpful in this regard, simply because of the annoyance of pausing an application state too long can cause problems.

I use a custom Alert - sample provided

<fx:Declarations>
    <fx:Component className="AlertMsg">
        <s:SkinnablePopUpContainer x="70" y="300">
            <s:TitleWindow title="My Message" close="close()">
                <s:VGroup horizontalAlign="center" paddingTop="8" paddingBottom="8" paddingLeft="8" paddingRight="8" gap="5" width="100%">
                    <s:Label text="My alert message text here..."/>
                    <s:Button label="OK" click="close()"/>
                </s:VGroup>
            </s:TitleWindow>
        </s:SkinnablePopUpContainer>
    </fx:Component>
</fx:Declarations>

<s:layout>
    <s:VerticalLayout paddingTop="5" paddingBottom="5" paddingLeft="5" paddingRight="5" gap="10"
                      horizontalAlign="center" verticalAlign="top"/>
</s:layout>

<s:TextArea text="This sample shows how you can display a simple alert message in a mobile application using the Spark SkinnablePopUpContainer. The mx.controls.Alert is not recommended for mobile."
            width="98%" editable="false"/>
<s:Button label="Show Alert" click="(new AlertMsg()).open(this, false)"/>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文