Fixing ‘parseSdkContent failed’ error in Eclipse

I recently updated my Android SDK tools to API level 21 with the latest Eclipse Juno and everything worked as it should but for this ‘parseSdkContent failed’ error which would pop up every time i would open up a layout file to edit.
'parseSdkContent failed' error in Eclipse

This was very frustrating since i had at first thought that maybe it was something to do with my Java version since i was using Ubuntu 14.04 LTS and it was also showing me Java Build Path errors.

Finally, after some digging in Google groups forums and stackoverflow i was able to find a workaround. I observed that this error was relevant to API level 5.0 L preview. So, to fix it all i had to do was to replace the layoutlib.jar (rename and backup the old file first) located at SDKBUNDLE/sdk/platforms/android-21/data with the one from previous version i.e. SDKBUNDLE/sdk/platforms/android-20/data.

alexey

alexey

Application developer, movie buff, occasional reader and a huge Manchester United fan.
alexey

Application developer, movie buff, occasional reader and a huge Manchester United fan.