Error parsing C:\Documents and Settings\<user>\.android\devices.xml

25,408

Solution 1

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

Solution 2

delete homedirectory/.android then restart the IDE

SDK will prompt for updates

Solution 3

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

Share:
25,408
L. G.
Author by

L. G.

Updated on August 10, 2022

Comments

  • L. G.
    L. G. almost 2 years

    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.

  • RVG
    RVG almost 11 years
    Thank u. it helps to me.
  • L. G.
    L. G. over 10 years
    I suppose a bug in the installation/update setup overwrite the old devices.xml.
  • Manoj Seelan
    Manoj Seelan about 10 years
    That was really helpful. Thanks for sharing this.