【问题标题】:Cannot run Android apps with eclipse on OS X 10.6无法在 OS X 10.6 上使用 Eclipse 运行 Android 应用程序
【发布时间】:2011-08-02 11:48:50
【问题描述】:

在 OS X 10.6.7 中使用 ADT 插件运行 Eclipse 3.5.2 (Classic)。我已经安装了 SDK 并运行了 SDK 和 AVD Manager 来安装所有可用的平台和工具。我有一个以 Android 2.2 作为目标 API 的 AVD 设置,并为 Android 2.1 Update 1 配置了示例“Hello,Android”应用程序,因此兼容性应该不是问题。当我运行应用程序时,它会启动模拟器,但在 android 启动动画出现之前给我一个错误。这是 Eclipse 控制台窗口中的输出:

[2011-04-10 06:45:40 - HelloAndroid] ------------------------------
[2011-04-10 06:45:40 - HelloAndroid] Android Launch!
[2011-04-10 06:45:40 - HelloAndroid] adb is running normally.
[2011-04-10 06:45:40 - HelloAndroid] Performing com.twopoint7.testing.HelloAndroid activity launch
[2011-04-10 06:45:40 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'testDroid'
[2011-04-10 06:45:40 - HelloAndroid] Launching a new emulator with Virtual Device 'testDroid'
[2011-04-10 06:46:04 - Emulator] 2011-04-10 06:46:04.613 emulator[997:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2011-04-10 06:46:04 - HelloAndroid] New emulator found: emulator-5554
[2011-04-10 06:46:04 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2011-04-10 06:47:22 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.twopoint7.testing.HelloAndroid activity launch'!

任何关于可能出现问题的建议将不胜感激。我发现很多帖子(这里和其他论坛上)似乎表明 NSQuickDrawView 与 Quartz 警告似乎是一个全面的问题,但还没有解决方案。我更关心“emulator-5554 disconnected...”位以及我似乎无法在模拟器中运行任何应用程序的事实。我可以提供任何其他有用的信息吗?有什么见解吗? 提前感谢您的宝贵时间!

【问题讨论】:

    标签: android eclipse macos osx-snow-leopard


    【解决方案1】:

    我猜你需要在启动模拟器后重置你的 adb。在 Eclipse 中,转到 窗口 -> 显示视图 -> 其他 -> 设备(在 android 文件夹下)。 在设备视图中,找到并重置 adb。然后运行您的应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-30
      • 1970-01-01
      • 2014-12-27
      • 2015-02-01
      • 2012-05-28
      • 1970-01-01
      • 2015-07-13
      • 1970-01-01
      相关资源
      最近更新 更多