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

时间:2014-09-13 13:13:15   收藏:0   阅读:977

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

原文:http://www.cnblogs.com/zoe-j/p/3969653.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!