【问题标题】:Why won't a Android 1.5 app run on Android 2.2 phone or emulator?为什么 Android 1.5 应用程序不能在 Android 2.2 手机或模拟器上运行?
【发布时间】:2010-08-14 21:48:33
【问题描述】:

我正在使用 Android 1.5 开发一个 Android 应用程序。我正在使用旧版本的 SDK,因为我正在构建它以在单个 G1 手机上运行。

我一直在使用 2.1 模拟器,没有任何问题,但是当我尝试查看我的 Nexus One (2.2) 时,应用程序立即停止响应。然后我尝试了一个 2.2 的模拟器,结果相同。

有没有人遇到过类似的问题或知道可能的解决方案?

这个项目不是很复杂。我有一个在后台运行的服务,它监听传入的文本消息并将这些消息传递到数据库。当我在调试模式下运行程序时,它永远不会在第一个活动的第一行遇到断点。好像连加载都加载不出来。

【问题讨论】:

  • 您检查过 logcat 输出是否有异常?他们在 1.5 和 2.2 之间移动了一些课程。我会检查是否抛出异常,然后将其发布在这里。

标签: android android-emulator android-2.2-froyo


【解决方案1】:

嗨,昆顿,我遇到了类似的问题

在我的 Manifest.xml 中,我有 android:name 属性

 < application android:icon="@drawable/icon" android:label="@string/app_name" android:name="@string/appname">

删除 android:name 属性

< application android:icon="@drawable/icon" android:label="@string/app_name">

【讨论】:

    【解决方案2】:

    我从来没有找到解决方案。上面的建议没有奏效。在我的具体情况下,该应用必须在 2.2 上运行,所以我只是避免它。

    如何解决? :D

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-12
      • 2016-02-11
      相关资源
      最近更新 更多