Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - parseSdkContent failed error - not recognizing XML Files

I am using Android SDK Tools 23.0.2 with Android API 20 (L preview).

I have been having this error for some time:

parseSdkContent failed
.androidjava.lang.ExceptionInInitializerError

and I have looked at many other similar questions and tried their solutions to no avail.

They recommended deleting the /.android file in the user directory where my workspace is saved and restarting Eclipse. However this did not work for me.

parseSdkContent failed Could not initialize class android.graphics.Typeface

Android SDK Content Loader failing with NullPointerException

This error seems to be affecting my java code's ability to recognize the XML files it references. When I reference variables to components in the XML file, it does not recognize its existence, even though everything seems to be set up correctly.

Please let me know if any more information is needed.

like image 823
user3896618 Avatar asked Jul 31 '14 17:07

user3896618


3 Answers

I'd add a comment, but my rep isn't high enough...

Anyway, deleting .android folder worked for me. Your wording suggests you deleted then restarted Eclipse. Try:

  1. Stop/Exit out of Eclipse
  2. Delete .android
  3. Restart Eclipse
like image 86
Dave Pascua Avatar answered Oct 14 '22 19:10

Dave Pascua


I was using the 64 bit version of Eclipse ADT from this link https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

and it was giving me issues on Windows 7 64 bit

I have now downloaded 32 bit version of Eclipse ADT from this link https://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip

and now its working perfectly.

It might help others too.

like image 33
muasif80 Avatar answered Oct 14 '22 18:10

muasif80


I used the "switch workspace" option and created a completely new workspace. This new workspace gives me no problems.

like image 37
HOndo Avatar answered Oct 14 '22 19:10

HOndo