2012-08-24 42 views
0

我已經安裝了eclipse和android sdk,並且在eclipse中創建項目時我運行我的項目,然後彈出小窗口標題android avd錯誤和寫在它像
找不到兼容的目標,你想添加一個新的Android虛擬devide找不到兼容的目標你想添加一個新的android虛擬devide

[2012-08-24 07:56:59 - The basics] ------------------------------<br/> 
[2012-08-24 07:56:59 - The basics] Android Launch!<br/> 
[2012-08-24 07:56:59 - The basics] adb is running normally.<br/> 
[2012-08-24 07:56:59 - The basics] Performing com.adnanbhatti.com.MainActivity activity launch<br/> 
[2012-08-24 07:56:59 - The basics] Failed to find an AVD compatible with target 'Android 2.2'.<br/> 
[2012-08-24 07:57:02 - The basics] Still no compatible AVDs with target 'Android 2.2': Aborting launch.<br/> 
[2012-08-24 07:57:02 - The basics] Performing com.adnanbhatti.com.MainActivity activity launch<br/> 
[2012-08-24 07:57:07 - The basics] Launch canceled!<br/> 
[2012-08-24 08:41:10 - The basics] ------------------------------<br/> 
[2012-08-24 08:41:10 - The basics] Android Launch!<br/> 
[2012-08-24 08:41:10 - The basics] adb is running normally.<br/> 
[2012-08-24 08:41:10 - The basics] Performing com.adnanbhatti.com.MainActivity activity launch<br/> 
[2012-08-24 08:41:10 - The basics] Failed to find an AVD compatible with target 'Android 2.2'.<br/> 
[2012-08-24 08:44:18 - The basics] Performing com.adnanbhatti.com.MainActivity activity launch<br/> 
[2012-08-24 08:44:19 - The basics] Launch canceled! 

我怎樣才能解決這個問題?

+0

您沒有相關仿真器來運行應用程序,與您的應用Android版本創建AVD .. –

回答

0

您需要通過AVD創建仿真器目標或附加真實設備以運行已編譯的應用程序。

0

使用AVD Manager創建您的模擬器,並檢查您的應用程序的minSdkVersion,如下所示:android:minSdkVersion="8"舉例說明我的應用程序使用Android 2.2的api級別爲8的目標。因此,創建一個面向Android 2.3的模擬器。

1

您必須通過WINDOWS > AVD MANAGER > THEN SELECT A NEW創建模擬器,現在您可以根據您的選擇目標創建AVD。

,並添加到manifest文件

<uses-sdk android:minSdkVersion="8" 
     android:targetSdkVersion="10" /> 
相關問題