0

我已经安装了eclipse和android sdk,当我运行我的项目时我在eclipse中创建了项目,然后小窗口弹出标题android avd错误和上面写的文本,就像
没有找到兼容的目标你想添加一个新的android虚拟设备吗

[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!

我怎么解决这个问题?

4

3 回答 3

1

您必须通过创建模拟器 WINDOWS > AVD MANAGER > THEN SELECT A NEW,现在您可以根据您选择的目标创建 AVD。

并添加到manifest文件中

<uses-sdk android:minSdkVersion="8"
        android:targetSdkVersion="10" />
于 2012-08-24T03:58:28.927 回答
0

您需要通过 AVD 创建模拟器目标或附加真实设备以运行编译的应用程序。

于 2012-08-24T03:50:12.893 回答
0

使用 AVD Manager 创建您的模拟器,并像这样检查您的应用程序的 minSdkVersion:android:minSdkVersion="8"例如,我的应用程序目标是 Android 2.2,它的 API 级别为 8。所以创建面向 Android 2.3 的模拟器。

于 2012-08-24T03:53:35.700 回答