[Android] 升级了新的android studio之后 发生如下的报错,The following classes could not be instantiated:
16lz
2022-04-07
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的信息都看不到。重新开了模拟器才能恢复。
更多相关文章
- android 模拟器 使用SD卡
- android 模拟器中启用相机API支持
- 使用Repo在Windows平台下載Android原始碼
- Android(安卓)Camera预览
- android 开发中遇到的问题
- Android(安卓)定位当前位置可能出现的问题
- android超快模拟器Ggenymotion的安装和配置
- Android(安卓)自定义像素AVD模拟器无键盘
- Android之相机