首页 > 代码库 > [Android] 升级了新的android studio之后 发生如下的报错,The following classes could not be instantiated:

[Android] 升级了新的android studio之后 发生如下的报错,The following classes could not be instantiated:

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 Studio 0.8.9

[Android] 升级了新的android studio之后 发生如下的报错,The following classes could not be instantiated: