parseSdkContent failed Could not initialize class android.graphics.Typeface

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

parseSdkContent failed
Could not initialize class android.graphics.Typeface

And when I try to run project, it is giving this error :

An internal error occurred during: "Launching myapp".
java.lang.NullPointerException

 

解决办法: 

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

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

Source: http://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.

posted @ 2015-02-15 13:00  jerrys  阅读(701)  评论(0编辑  收藏  举报