At the time of exectution am getting an error
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 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.
The problem I have with all of these answers is they throw out the baby with the bathwater. Just read the problem and you'll realize the devices config file has a value that's not allowed.
<d:pixel-density>280dpi</d:pixel-density>
becomes<d:pixel-density>hdpi</d:pixel-density>
Edit: The problem with the answers that blindly delete the entire folder is that now you can't develop for Android Wear. The problem with replacing devices.xml folder is you're providing a list of phone specs where wearable specs are expected. Now you can't test.
To be honest I don't understand why Google moved from eclipse to Intelli Idea, I have a lot of issues that I did not had before.
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) Go to:
and delete the "android wear" folder which contains system images of android wear.
No need to root it. For me, removing the android wear folder from the path did the trick! C:\Users\Binil\AppData\Local\Android\sdk\system-images\android-22\android-wear
Just delete this android wear folder and it will do the trick, hopefully :)
Go to Android SDK and delete all Android Wear packages.
In my case(Linux), I just delete the file
then I copy
to