parseSdkContent failed Could not initialize class android.graphics.Typeface

来源:互联网 发布:淘宝评论禁止词汇 编辑:程序博客网 时间:2024/05/20 23:35

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

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




0 0
原创粉丝点击