Error parsing D:sdkforasandroid-sdk-windowssystem-imagesandroid-22android-wearx86devices.xml

今天在工作过程中向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:sdkforasandroid-sdk-windowssystem-imagesandroid-22android-weararmeabi-v7adevices.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.
Error parsing D:sdkforasandroid-sdk-windowssystem-imagesandroid-22android-wearx86devices.xml
多番查找终于找到解决方法:
用/sdk/tools/lib/devices.xml去替换system-imagesandroid-22android-wearx86devices.xml和system-imagesandroid-22android-weararmeabi-v7adevices.xml中的devices.xml,问题解决!

原文地址:https://www.cnblogs.com/libinsoft/p/4967670.html