Android L parseSdkContent failed Could not initial

2020-02-12 18:28发布

Hello recently i updated to Android L sdk. Now whenever i open new project dialog i'm getting this error.

parseSdkContent failed Could not initialize class android.graphics.Typeface

I have seen many questions already answered on stackoverflow but the solutions mentioned didn't work for me.

  • I have tried deleting the .android in folder C: drive and restarted eclipse.
  • I have also tried re-installing the new version of Android ADT plugin through Help->Install New Software in Eclipse as mentioned at http:\developer.android.com/sdk/installing/installing-adt.html
  • Whenever i check for new updates in Eclipse it shows "No New Updates Found".

But still i'm getting the same error.

2条回答
爱情/是我丢掉的垃圾
2楼-- · 2020-02-12 19:02

The issue was fixed in the API 21 rendering library. As a workaround, you can use the rendering library from API 20 in the meanwhile.

  1. Download the SDK platform for API 20 (4.4W)
  2. Navigate to your sdk folder (should be like D:\adt-bundle-windows-x86_64-20140321\sdk)
  3. Go to platforms folder -> android-21 folder -> data folder
  4. Rename layoutlib.jar (for backup purpose)
  5. Copy the same file from your android-20 folder to this folder
  6. Restart Eclipse

https://code.google.com/p/android/issues/detail?id=77726#c15

查看更多
兄弟一词,经得起流年.
3楼-- · 2020-02-12 19:06

The update issue is probably related to your parseSdkContent issue, since "the update mechanism in the ADT bundle is broken" (Comment 66). This means that Eclipse have not updated to be compatible with the new Android

I had the same problem when I wanted to update my Eclipse to prepare it for Android L, so I downloaded the new adt zip, then came accross the other error, and after deleting my .android folder, I am no longer having issues.

The new bundle can be found on the android developer site, and here is the link: Android developer site

查看更多
登录 后发表回答