转载 2015-10-26 10:38:58
android studio 首次编译运行报错:
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 D:\sdkforas\android-sdk-windows\system-images\android-22\android-wear\armeabi-v7a\devices.xmlcvc-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 D:\sdkforas\android-sdk-windows\system-images\android-22\android-wear\x86\devices.xml
解决办法是: 找到Android sdk安装目录:
用/sdk/tools/lib/devices.xml
替换
system-images\android-22\android-wear\x86\devices.xml
再替换
system-images\android-22\android-wear\armeabi-v7a\devices.xml
千万记得,要复制替换2次,如果你只替换了一次,100%是会报错的。
OK,问题解决,很开始有木有!