Reputation: 61
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
Reputation: 51
I had the same problem, I solved it by editing "devices.xml" and by changing "," to "." in values:
<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>
<d:xdpi>216.97</d:xdpi>
<d:ydpi>216.97</d:ydpi>
Now everything is working fine.
Upvotes: 0
Reputation: 9761
I had a similar problem here:
Error parsing C:\Documents and Settings\<user>\.android\devices.xml
and this solved it:
https://stackoverflow.com/a/18404643/891479
With an explanation here:
https://stackoverflow.com/a/13429067/891479
Upvotes: 0
Reputation: 1815
Follow below steps solved my problem
and it worked for me.
Upvotes: 2
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
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