2011-07-08 71 views
1

我創建了一個Hello-Android應用程序,並按照developer.android.com網站中的說明進行了所有必需的配置。當我運行應用程序時,仿真器未啓動。無法啓動Android模擬器

在控制檯中顯示以下消息。

"[2011-07-08 10:44:04 - HelloAndroid] Android Launch! 
[2011-07-08 10:44:04 - HelloAndroid] adb is running normally. 
[2011-07-08 10:44:04 - HelloAndroid] Performing com.HelloAndroid.HelloAndroidActivity activity launch 
[2011-07-08 10:44:04 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'AVD' 
[2011-07-08 10:44:04 - HelloAndroid] Launching a new emulator with Virtual Device 'AVD'". 

然後出現一個彈出消息,顯示以下內容。

"An Unhandled win32 exception occured in emulator-arm.exe[3656]. 
Just-In_time debugging this exception failed with the following error: 
No installed debugger has Just-In-Time debugging Enabled. 
In Visual Studio,Just-In_time debugging can be enabled from 
Tools/Options/Debugging/Just-In_time. 

Check the documentation index for 'Just-in-time debugging, errors' 
for more information." 

請幫助我,讓我可以啓動模擬器。

+0

您是否嘗試通過Android SDK和AVD Manager啓動您的AVD?如果這樣工作並且AVD確實啓動正常,您可以嘗試在AVD啓動並運行後運行您的應用程序。 – THelper

+0

能否請你清楚解釋我應該怎麼做,以便我可以運行該應用程序。 –

回答

0
  1. 啓動了Android SDK管理器
  2. 在SDK管理器,進入「虛擬設備」頁面,點擊「新建」,創建一個新的設備。 確保您創建了一個「Target」API,該API位於您的應用支持的API範圍內。
  3. 一旦創建了Android虛擬設備(AVD),請單擊「開始」以啓動它。
  4. 等到AVD完全啓動,然後轉到Eclipse
  5. 在Eclipse中爲您的應用程序創建一個「運行配置」(如果您還沒有它)。在運行配置 確保您選擇您剛創建的設備。
  6. 運行您的「運行配置」。
+0

非常感謝。模擬器正在工作 –

+0

你知道這個原因嗎? – sdfwer

0

這是運行Android應用程序之前的幾個工具。

  1. 確保當您首次啓動模擬器以運行此特定應用程序時,您未檢查以下複選框。

    。從快照啓動

    因爲第一次在第一次運行此應用程序時沒有任何快照存在。

    2請確保您選擇了小分辨率模擬器,因爲較大的分辨率表現不佳。