“parseSdkContent failed Could not initialize class android.graphics.Typeface” in SDK Andorid 5.0

流过昼夜 提交于 2019-12-10 23:41:55

问题


I'm getting the below error after I update the SDK Android 5.0 (API 21)

"parseSdkContent failed Could not initialize class android.graphics.Typeface" 

Another thread suggested to delete .android folder, yes its works, but after sometime this error will trigger again and not able to select any Project Build Target SDK, (its allows to check the target and apply, but again open Properties->android, its showing unchecked) to build the app.

I'm using Android SDK Build Tools Rev 19.1 and Eclipse Juno. ADT version 23.0.4

Note : If my Android Project target SDK version is 20 or 19, there is no problem.


回答1:


This is android package error,its corrupted android 5.0 sdk platform. Just Delete the folder <sdk>/<platforms>/<android-21> and download the android 5.0 sdk platform from sdk manager.




回答2:


Got the fix. This happened because you installed a new Eclipse and loaded the 5.0 API Directly. You just have to delete the file:

".android in C:\User\\" in Windows.

After this step just install the ANDROID SDK BUILD-TOOLS revision 21

Hope it works for you :)



来源:https://stackoverflow.com/questions/26829679/parsesdkcontent-failed-could-not-initialize-class-android-graphics-typeface-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!