2011-04-10 107 views
1

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

[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与石英警告似乎是一个问题,但还没有解决方案。我更关心的是“emulator-5554 disconnect ...”位以及我似乎无法在模拟器中运行任何应用程序的事实。我可以提供哪些其他信息会有帮助?任何见解? 预先感谢您的时间!

回答

0

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

相关问题