Android L parseSdkContent failed Could not initialize class android.graphics.Typeface

后端 未结 2 1400
一生所求
一生所求 2020-12-19 18:29

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.gr

2条回答
  •  心在旅途
    2020-12-19 19:17

    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

提交回复
热议问题