The layout in layout has no declaration in the base layout folder; this can lead to crashes when the

报错信息: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的根布局

我的项目是tv项目,res下有layout(默认布局)、layout_land(横屏)、layout_port(竖屏)

解决方法:把横屏布局layout_land里所有的xml复制一份到layout文件夹下。

如果还是解决不了参考Stack Overflow的这篇:https://stackoverflow.com/questions/52547657/the-layout-layout-in-layout-has-no-declaration-in-the-base-layout-folder-erro

开发了很久,之前一直没问题,现在忽然出现也不知道动了哪里造成的。

发布了224 篇原创文章 · 获赞 390 · 访问量 29万+

猜你喜欢

转载自blog.csdn.net/cui130/article/details/89849807