4

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.

kailash
  • 175
  • 1
  • 1
  • 6
  • I just hit the same error on a Windows 64-bit Eclipse + ADT bundle installation that I downloaded yesterday. All the Google hits I've seen for this exact error message have been since June 29, 2014, which makes me think it's a bug only in the newest version of ADT. Do you think downloading an older version would solve it? – Josh Jul 10 '14 at 18:26
  • i dono but,in the older versions in which i was using ,i dint get these sorts problem ...this is the first time getting like this errors often ,struck with this errors....but no solution yet,.........if i clear a error fron google,the next error occurs like parse sdk cont failed java.lang.exception.initializationerror. – kailash Jul 11 '14 at 05:41
  • 1
    I think these questions relate to the same Eclipse bug: http://stackoverflow.com/questions/24636393/an-internal-error-occurred-during-launching-myapp-java-lang-nullpointerexcep http://stackoverflow.com/questions/24683482/eclipse-android-sdk-content-loader – Josh Jul 11 '14 at 18:47

6 Answers6

12

from https://code.google.com/p/android/issues/detail?id=77726#c15:

  1. Download the SDK platform for API 20 (4.4W)

  2. Navigate to your sdk folder (should be like D:\EclipseWorkspace\adt-bundle-windows-x86_64-20140321\sdk)

  3. Go to platforms folder -> android-21 folder -> data folder

  4. rename layoutlib.jar (for backup purpose)

  5. copy the same file (layoutlib.jar) from your android-20 folder to this folder

  6. restart Eclipse

eriuzo
  • 1,687
  • 1
  • 14
  • 16
11

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.....

kailash
  • 175
  • 1
  • 1
  • 6
3

delete ~/.android

that seemed to work for me after restarting eclipse

1

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.

earthtrip
  • 498
  • 5
  • 18
0

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.

0

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.

adrian4aes
  • 849
  • 2
  • 14
  • 23