2011-04-10 113 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。然後運行你的應用。

相關問題