在stackoverflow找到的答案,下面意思就是说:

1、如果你Eclipse中有两个以上的项目,请确保他们使用的SDK版本一致。

2、要不然,你就在打开第二个项目之前先删除.android文件夹。

3、好像只有使用了androidL、5.0时才会出现这个问题,不用之。

When I open layout editor,eclipseis 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 thehome/.androidfolder and everything is normal now.

InWindowsyou can find this folder inC:/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

更多相关文章

  1. Android(安卓)development with maven
  2. Android图片加载后变小
  3. android values-v11和values-v14文件夹是干啥的?
  4. Android(安卓)Studio 新导入项目时各种报错及解决__2019.08.20
  5. Android(安卓)国际化 语言相关 和 打包 多渠道配置
  6. Ubuntu Linux14 64位下在Android(安卓)studio下用gradle编译Andr
  7. Android(安卓)studio3.0上运行opencv3.2.0自带人脸识别实例Demo
  8. Android使用selector点击按钮文字变色
  9. Android(安卓)打包aar给unity3d使用 项目心得

随机推荐

  1. Android(安卓)反编译资料整理
  2. Android源码下载出现的问题
  3. Android(安卓)五大布局
  4. Android核心模块
  5. android gradle 自动动态构建多平台的包
  6. SpannableString的使用方法
  7. Android的加速度传感器模拟摇一摇的效果-
  8. ANDROID版本号和版本名称的重要性介绍
  9. Android之基本样式和布局
  10. 如何添加Android返回键的退出功能