parseSdkContent failed Could not initialize class android.graphics.Typeface
am getting this error often when i open a new project or run a project,or open a project.
parseSdkContent failed Could not initialize class android.graphics.Typeface
am getting this error often when i open a new project or run a project,or open a project.
from https://code.google.com/p/android/issues/detail?id=77726#c15:
Download the SDK platform for API 20 (4.4W)
Navigate to your sdk folder (should be like D:\EclipseWorkspace\adt-bundle-windows-x86_64-20140321\sdk)
Go to platforms folder -> android-21 folder -> data folder
rename layoutlib.jar (for backup purpose)
copy the same file (layoutlib.jar) from your android-20 folder to this folder
restart Eclipse
This errors (parse sdk content failed /graphics,nullpoint exception,initiallization)occurs only when we install Android L packages in sdk,on my occasion.So just try in deleting the Android L packages,and install the lower version to that Android 4.4w. This process fixed me a solution.
thank you.....
delete ~/.android
that seemed to work for me after restarting eclipse
I found after much trial and error that the easiest/safest way for me to fix this problem was by NOT deleting the entire ~/.android which has a bunch of unrelated but important data in it potentially, but by removing the directory(ies) in the ~/.android/avd directory. I had created a Nexus 7 AVD prior to attempting to use the GUI editor and that's when the parseSDKContent error started showing up. Removing the directory which in my case was in ~/.android/avd/Nexus7-AVD.avd cleared up the bug and allowed me to edit my activity in the graphical editor.
Try defining the Android target of your project as Android 4.4w (API 20). You can do this in Project->Properties->Android. This might solve the problem.
I had the same problem. I was using Android API 21 as the target API and I got that problem when I open a xml file or some IDE options.
I solved the problem updating the installed software in the Android SDK Manager. I am not sure if updating all installed software is necessary or only the API 21 SDK Platform, but I have installed all avaible updates and it solved my problem.