parseSdkContent failed Could not initialize class android.graphics.Typeface

后端 未结 4 2036
情歌与酒
情歌与酒 2020-12-09 15:02

When I open layout editor, eclipse is giving this error:

parseSdkContent failed
Could not initialize class android.graphics.Typeface
相关标签:
4条回答
  • 2020-12-09 15:18

    deleting home/.android is useless, i delete ~/.android/avd it worked for me :)

    0 讨论(0)
  • 2020-12-09 15:20

    Deleting ".android" is temporarily fixing the problem with me as after sometime it begins to come again ..

    Here is another cause and fix that might help .. This is happening because of existence of 2 versions of SDK in the same machine but in case you have only one version (probably it is 21) just download the SDK platform for API 20 (4.4W) as there is a problem in 21's "layoutlib.jar"). start applying the following:

    • Close Eclipse

    • Navigate to your sdk folder (something like C:\adt-bundle-windows-x86_64-20140321\sdk)

    • Go to platforms folder -> android-21 folder -> data folder and rename layoutlib.jar (for backup only)

    • Copy the same file (layoutlib.jar) from your android-20 folder to this folder "android-21"

    • Start Eclipse

    0 讨论(0)
  • 2020-12-09 15:22

    I was getting this error too

    parseSdkContent failed Could not initialize class android.graphics.Typeface

    But I could only resolve it after changing my Eclipse ADT from 64 bit to 32 bit on Windows 7 64 bit OS.

    0 讨论(0)
  • 2020-12-09 15:36

    I deleted the home/.android folder and everything is normal now.

    In Windows you can find this folder in C:/Users/User/

    Source: https://stackoverflow.com/a/5883841/3681056

    Note: it happens when you have 2 versions of SDK and eclipse, both in the same computer (and using the same .android file), if you open on version the other will get this error.

    0 讨论(0)
提交回复
热议问题