classes could not be found: - android.support.v7.i

刚刚进入studio 的小伙伴们遇到不少问题吧,这个是我曾经遇到的问题,但愿能帮助你们,若是觉的有帮助您记得给个赞哦android

Rendering Problemsweb

The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Create Class)api

Tip: Try to build the project.app

解决办法:布局

这个问题的缘由是studio成长中,Actionbar已经out了,它推荐你使用的是toolbarui

解决方法1:spa

找到项目目录res/values/sttyles.xml,准备修改其中的AppTheme设置。
找到属性parent="Theme.AppCompat.Light.DarkActionBar改为parent="Base.Theme.AppCompat.Light.DarkActionBar",就是在原parent属性值上加“Base.”前缀。
orm

修改为以后的截图:xml

 

ok啦    在返回你的布局文件时候  问题就没啦ip

解决方法2:更改下api版本 如图  换个低版本的api就能够了

 

解决方法3:跟方法一相似 ,只是把parent的值改为其余的,改为Theme.AppCompat.Light.NoActionBar

相关文章
相关标签/搜索