在stackoverflow找到的答案,下面意思就是说:
1、如果你Eclipse中有两个以上的项目,请确保他们使用的SDK版本一致。
2、要不然,你就在打开第二个项目之前先删除.android文件夹。
3、好像只有使用了androidL、5.0时才会出现这个问题,不用之。
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.
Source: http://stackoverflow.com/questions/24636393/parsesdkcontent-failed-could-not-initialize-class-android-graphics-typeface