Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Testing and Debugging Running the App on a Device

problem with using android device for debugging

I worked on SDK and connected my previous android device for debugging the apps it was Samsung and it worked like a charm but now that I have got a new phone which is again samsung and i installed its drivers explicitely like 4 times still i cant see my device instead I get an error when I click on debug app which is this :

<p>
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\Admin\AppData\Local\Android\sdk\system-images\android-23\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.
Error parsing C:\Users\Admin\AppData\Local\Android\sdk\system-images\android-23\android-wear\x86\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.
Error parsing C:\Users\Admin\AppData\Local\Android\sdk\system-images\android-23\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.
Error parsing C:\Users\Admin\AppData\Local\Android\sdk\system-images\android-23\android-wear\x86\devices.xm
</P>

1 Answer

I had this problem and couldn't find a good answer on fixing it. So I moved the device.xml files to a folder on my desktop and it works fine. I'm hoping the next update will fix the actual problem.