9

Since my last update of the Android SDK on Eclipse I have the following error opening Eclipse:

Error: Error parsing C:\Documents and Settings\.android\devices.xml, backing up to C:\Documents and Settings\.android\devices.xml.old cvc-elt.1: Cannot find the declaration of element 'd:layout-devices'.

Someone has ever experienced this problem? I can't find anything on Google and Stackoverflow about this error.

L. G.
  • 9,642
  • 7
  • 56
  • 78

4 Answers4

36

I finally found a solution myself.
This answer put me on the right track: https://stackoverflow.com/a/13429067/891479

Copy default devices.xml file from
Sdk_Directory/tools/lib/devices.xml
to
Home_Directory/.android/devices.xml.

Home_Directory is the windows user home directory.
Example: C:\Documents and Settings\smcqueen\.android

Community
  • 1
  • 1
L. G.
  • 9,642
  • 7
  • 56
  • 78
5

delete homedirectory/.android then restart the IDE

SDK will prompt for updates

Teshan
  • 351
  • 7
  • 10
1

Delete .android folder in your home directory and now run the application from android studio. Error will go away.

0

go to folder sdk/tools/libs/devices.xml copy this file and paste under your home directory such as C:\User\Computer.android folder

Saw Pyae
  • 269
  • 4
  • 9