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 自定义像素AVD模拟器无键盘
  3. android超快模拟器Ggenymotion的安装和配置
  4. android 模拟器中启用相机API支持
  5. centos 7 安装android 模拟器genymotion
  6. android 模拟器中找不到程序

随机推荐

  1. 使用ThinkAndroid快速开发框架需要有以下
  2. android EditText 银行卡4位加空格
  3. Android(安卓)系统调用
  4. Android学习笔记(2)————Android四大
  5. android HttpClient连接Web端
  6. transformClassesWithJarMergingForDebug
  7. Color Transformations and the Color Ma
  8. cocos2d-x 3.0 bata for android环境配置
  9. Android(安卓)Studio下 SVN忽略文件设置
  10. Android(安卓)AdapterViewFlipper 使用示