Android 5.0 parseSdkContent failed Could not initialize class android.graphics.Typeface

来源:互联网 发布:rpm安装java 编辑:程序博客网 时间:2024/05/20 21:59

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) asthere 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
原创粉丝点击