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

Ben Morse
Ben Morse
6,068 Points

Emulator Crashes

I"m trying to run the Emunlator Nexus 5 API 21 Google APIs and i'm getting this error

4:47:36 PM SAXParseException: Error parsing C:\Users\Benjamin\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.

I'm using the Android Studio 1.0 same one as the one used in the Weather APP video.

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

I notice you say you're trying to use a phone emulator but the system image you're using is for a wearable. Have you tried removing the old emulator and starting again from scratch?

Ben Morse
Ben Morse
6,068 Points

huh...interesting. I just now notice that in my path. I have and when I did I selected the Phone under the category and Nexus 5. Chances are that when I did a "complete" uninstall for the old version that I missed some files. So after reading that I just removed the old files from within the android-23. I'm still getting the same error though....old.

Ben Morse
Ben Morse
6,068 Points

Don't know if this will contribute into solving the problem, but API versions want to keep using API 23 which I'm getting a "rendering error" when I start up Android Studio. I just simply switch to API 21 under the activity_main.xml "Design interface". But did notice that when I run emulator it is trying to run the API 23 based on the file path.....