The following classes could not be instantiated:
-android.support.v4.widget.DrawerLayout (Open Class, Show Exception)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE

我使用了NavigationDrawer这个模块去创建,多个目标api之下都发生了报错,

这个drawerlayout扩展自 ViewGroup

网上有说是api问题,试了一下api,果然在android L preview的版本的预览画面上无法预览。

可以运行在模拟器上,只是编辑器不能查看

开发环境是Android Studio 0.8.9

我后来又把studio删了,重新下载了8.6的重新装了表示没问题了,现在是不敢升级0.8.9

android Studio不稳定的地方还有很多,有时候Log的信息都看不到。重新开了模拟器才能恢复。

更多相关文章

  1. android 模拟器 使用SD卡
  2. android 模拟器中启用相机API支持
  3. 使用Repo在Windows平台下載Android原始碼
  4. Android(安卓)Camera预览
  5. android 开发中遇到的问题
  6. Android(安卓)定位当前位置可能出现的问题
  7. android超快模拟器Ggenymotion的安装和配置
  8. Android(安卓)自定义像素AVD模拟器无键盘
  9. Android之相机

随机推荐

  1. android density
  2. android camera2 api点击图片实现聚焦
  3. android实现自动提示功能
  4. Android(安卓)监听home,menu键
  5. Android(安卓)adb logcat 命令使用的技巧
  6. Android(安卓)DatePicker example
  7. android (back)返回键监听
  8. How to Compile Android(安卓)on Ubuntu
  9. Android(安卓)JNI编程
  10. Android提供的LruCache类简介