android studio 编译运行报错:

来源:互联网 发布:sql数据库备份 编辑:程序博客网 时间:2024/04/30 01:01

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,问题解决,很开始有木有!

1 0
原创粉丝点击