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

初学安卓,找了半天,各种方法不行,这个解决了。

原网址(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.


The following classes could not be instantiated- android.support.v7.widget.Toolbar 解决方法
https://www.920929.xyz/posts/3e96a91f.html
作者
DELIN
发布于
2015年9月4日
许可协议