Crazy
Crazy

Reputation: 61

Error creating AVD after updating ADT, error parsing devices.xml

I just updated my Android SDK to the latest version as well as my ADT and after that I couldn't create a new AVD.

Here is the error it gives me:

[2013-03-07 19:55:07 - SDK Manager] Error parsing C:\Users\sr\.android\devices.xml, backing up to C:\Users\sr\.android\devices.xml.old
[2013-03-07 19:55:15 - SDK Manager] Error parsing C:\Users\sr\.android\devices.xml, backing up to C:\Users\sr\.android\devices.xml.old

I've reinstalled my eclipse, Android SDK and ADT but still get this error. I am running this on Windows 7. How can I fix this so I can create a new AVD?

Upvotes: 6

Views: 8322

Answers (5)

Janusz H.
Janusz H.

Reputation: 51

I had the same problem, I solved it by editing "devices.xml" and by changing "," to "." in values:

  • old entry:
    <d:diagonal-length>4,30</d:diagonal-length>
  • new entry:
    <d:diagonal-length>4.30</d:diagonal-length>

  • old entry:
    <d:xdpi>216,97</d:xdpi>
    <d:ydpi>216,97</d:ydpi>

  • new entry:
    <d:xdpi>216.97</d:xdpi>
    <d:ydpi>216.97</d:ydpi>

Now everything is working fine.

Upvotes: 0

Nevin Chen
Nevin Chen

Reputation: 1815

Follow below steps solved my problem

  1. Upgrade the Eclipse ADT plugin to latest( I used 22.0.4->22.0.5 )
  2. Removed the newly added virtual device in AVD

and it worked for me.

Upvotes: 2

user809843
user809843

Reputation:

I have resolved this issue. here is the procedure. just check the old devices.xml from C:\AndroidInstallationDir\android-sdk- windows\tools\lib If it contains the few device element. Then paste this devices.xml to C:\Users\.android restart your eclipse. Please try if it works. Thanks

Upvotes: 4

Geoff
Geoff

Reputation: 5433

I was able to get it working again by renaming / deleting the devices.xml file; it then recreates it. See also: error while opening AVD manager

Upvotes: 3

Related Questions