您的位置:首页 > 移动开发 > Android开发

The following classes could not be instantiated: - android.support.v7.widget.Toolbar 解决方法

2015-09-04 14:16 645 查看
初学安卓,找了半天,各种方法不行,这个解决了。

原网址(http://stackoverflow.com/questions/26575815/the-following-classes-could-not-be-instantiated-android-support-v7-widget-too)

I changed the res/values/styles.xml file from this:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


to this:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">


and that solved the problem.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: