我已经下载了SDK和Eclipse,一切...... 一旦我尝试在应用程序" Hello World!"上单击Run,它就会显示:
[2014-05-22 14:43:21 - appcompat_v7] WARNING: unable to write jarlist cache file C:\Users\User\Desktop\app\application\appcompat_v7\bin\jarlist.cache
[2014-05-22 14:43:21 - appcompat_v7] WARNING: unable to write jarlist cache file C:\Users\User\Desktop\app\application\appcompat_v7\bin\jarlist.cache
[2014-05-22 15:17:57 - TechSamay] ------------------------------
[2014-05-22 15:17:57 - TechSamay] Android Launch!
[2014-05-22 15:17:57 - TechSamay] adb is running normally.
[2014-05-22 15:17:57 - TechSamay] Performing com.example.techsamay.MainActivity activity launch
[2014-05-22 15:17:57 - TechSamay] Failed to find an AVD compatible with target 'Android 4.4.2'.
[2014-05-22 15:17:58 - TechSamay] Performing com.example.techsamay.MainActivity activity launch
[2014-05-22 15:18:00 - TechSamay] Launch canceled!
[2014-05-22 15:18:11 - TechSamay] ------------------------------
[2014-05-22 15:18:11 - TechSamay] Android Launch!
[2014-05-22 15:18:11 - TechSamay] adb is running normally.
[2014-05-22 15:18:11 - TechSamay] Performing com.example.techsamay.MainActivity activity launch
[2014-05-22 15:18:11 - TechSamay] Failed to find an AVD compatible with target 'Android 4.4.2'.
[2014-05-22 15:18:13 - TechSamay] Still no compatible AVDs with target 'Android 4.4.2': Aborting launch.
[2014-05-22 15:18:13 - TechSamay] Performing com.example.techsamay.MainActivity activity launch
[2014-05-22 15:18:14 - TechSamay] Launch canceled!
为什么?,不知道如何修复它,谢谢......
答案 0 :(得分:2)
假设您至少有一个模拟器(也称为AVD或Android虚拟设备),因为Eclipse无法找到与您应用的最低Android版本兼容的模拟器。
我建议您为自己的应用设置所需的最低Android,除非它是绝对必要的,这样当启动它时,它也可以用于更多设备。
在this doc中你会找到更多关于它的信息,但基本上你需要做的就是
将android:minSdkVersion
中的属性androidManifest.xml
设置为较低的数字。
看一下Android API Levels,了解选择哪一个。我说9是非常安全的,在兼容性方面应符合您应用的目标。只有当你有理由证明这一点时,我才会说更高。
您需要在AndroidManifest.xml中更改的行的示例:
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="14"/>