1、values文件报错
报错信息:The dimen "keyboard_verticalGap" in values-1280x720 has no declaration in the base values folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier
位置:xml存放数值的文件
项目情况:项目的res目录下有values(默认值)、values-1280x720(分辨率1280x720下的值)、values-1920x1080(分辨率1920x1080下的值)
解决方法:将values默认目录下放一份values-1280x720和values-1920x1080文件中同样的xml文件
2、layout文件报错
报错信息:The layout in layout has no declaration in the base layout folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier
位置:xml的根布局
项目情况:res下有layout(默认布局)、layout_land(横屏)、layout_port(竖屏)
解决方法:把横屏布局layout_land里所有的xml复制一份到layout文件夹下