在Android Studio和IntelliJIODEA运行Android项目时遇到下面的问题:
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.
上个图:
经过不懈的搜索和尝试,在stack exchange上发现原因和解决方案:
原因和解决方案:
或者这样解决:
用/sdk/tools/lib/devices.xml去替换system-images\android-23\android-wear\x86\devices.xml和system-images\android-23\android-wear\armeabi-v7a\devices.xml中的devices.xml
注意:替换报错版本下的文件,是android-22就修改22下面的。
在stack exchange问答连接