Android:获取“无法重新加载AVD列表:"执行时的错误 [英] Android : Getting "Cannot reload AVD list:" error at the time of execution
问题描述
执行时出现错误
无法重新加载AVD列表:cvc-enumeration-valid:值"280dpi"相对于枚举'[ldpi,mdpi,tvdpi,hdpi,xhdpi,400dpi,xxhdpi,560dpi,xxxhdpi]无效'.它必须是枚举中的值. 解析C:\ Users \ Binil \ AppData \ Local \ Android \ sdk \ system-images \ android-22 \ android-wear \ armeabi-v7a \ devices.xml时出错 cvc-enumeration-valid:对于枚举"[[ldpi,mdpi,tvdpi,hdpi,xhdpi,400dpi,xxhdpi,560dpi,xxxhdpi]",值"280dpi"不是有效的.它必须是枚举中的值.
Cannot reload AVD list: cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration. Error parsing C:\Users\Binil\AppData\Local\Android\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-enumeration-valid: Value '280dpi' is not facet-valid with respect to enumeration '[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]'. It must be a value from the enumeration.
am使用android studio.
am using android studio .
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
}
任何人都可以告诉我如何纠正此错误.
can any one please tell me how to rectify this error.
推荐答案
之所以会出现此问题,是因为Android Studio无法以给定的dpi加载Android Wear系统图像.为了解决这个问题, 做到这一点:
This problem is caused because the Android Studio is not able to load android wear system images with given dpi. To resolve this, do this:
1)转到:
C:\ Program Files(x86)\ Android \ android-sdk \ system-images \ android-23
C:\Program Files (x86)\Android\android-sdk\system-images\android-23
并删除包含android wear系统映像的"android wear"文件夹.
and delete the "android wear" folder which contains system images of android wear.
这篇关于Android:获取“无法重新加载AVD列表:"执行时的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!