Error Loading the sdk when eclipse is started
up vote 57 down vote favorite
11

I have already read varying answers to above question, but I have a specific problem. When I start eclipse it gives an error:

Error Parsing: C:\android-sdk_r24.2-windows\android-sdk-windows\system-images\android-22\android-wear\armeabi-v7a cvc-complex-type.2.4.d: Invalid content was found starting with element 'd:skin'. No child element is expected at this point.

This error comes when eclipse automatically loads sdk on startup.



StackOverflow
accepted

I have faced the same parse sdk loading problem during eclipse startup like yours (Shown in image below)

SDK load error

The solution to above problem is to just delete(uninstall) the package Android Wear ARM EABI v7a system image available under Android 5.1.1 (API 22) if it's installed. (No need to uninstall whole 5.1.1 package). May be there is some eclipse bug with this package.

solution image

Finally restart eclipse to see your changes.

Edit: If the problem still exists, try removing other Android Wear package also (i.e Android Wear Intel x86 Atom System Image) as suggested by @Abhishek in comments below.



This was my error message:

Error: Error Parsing C:\Android\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml Invalid content was found starting with element 'd:Skin'. No child element is expected at this point.

There´s a kind of problem with android Wear packages for API 22, so my solution was deleting this two packages from the API 22

enter image description here



Copy the default devices.xml file from : /home/user/android-sdk/tools/lib/devices.xml

and paste it in the below paths: /android-sdk/system-images/android-22/android-wear/armeabi-v7a/ and /android-sdk/system-images/android-22/android-wear/x86/

This is a alternative solution, however, before replacing the devices.xml, take backup of the existing devices.xml file in these folders.



I removed the packages indicated in the api 22 in the sdk and the problem is not resolved.

I edited device.xml of Applications / Android / android-sdk-macosx / system-images / android-22 / android-wear / x86 and of Applications / Android / android-sdk-macosx / system-images / android-22 / android-wear / armeabi-v7a I removed the lines containing "d:skin"

Finally restart eclipse and the problem was resolved!



I couldn't delete the system image (idk why), so I took the approach of deleting all occurrences of g:skin in any xml file since eclipse don't know what that is:

$ find . -type f -name "*.xml" -print0 | xargs -0 sed -i /d:skin/d

On windows you might want to run it within Cygwin or cmder



On MacOS 10.10.2

  1. Removed the lines, containing "d:skin" from device.xml from:

    • /Users/user/Library/Android/sdk/system-images/android-22/android-wear/x86

    • /Users/user/Library/Android/sdk/system-images/android-22/android-wear/armeabi-v7a

  2. Restart the eclipse, the problem should be resolved.



Working fine after removing the Android Wear ARM EABI v7a system image and wear intel x86 Atom System image.



The issue is still coming for API 23. To get rid from this we have to uninstall android Wear packages for both API 22 and API 23 also (till current update).

enter image description here



Check the

  • Android wear ARM EABI
  • Android wear Intel x86

Than delete them and restart Eclipse IDE. This should fix the problem.



I solve this issue deleting the 10 packages in my android sdk manage.

enter image description here



I had the same problem and it appears when I updated my sdk packages and added sdk 22 I removed all wear packages from sdk 22 as well as other sdks but problem wasn't resolved I Updated all of my sdk packages again from sdk manager then problem solved and error gone.

I think there's been few bugs with eclipse and android wear packages which are fixed in new updates available in sdk manager