The layout “xxx“ in layout has no declaration in the base layout folderMissingDefaultResource

        在项目中新建一个xml文件,出现了根布局文件出标红,并且提示:The layout "xxx" in layout has no declaration in the base layout folderMissingDefaultResource等等(会提示missing什么的,让你添加什么这一类),并且加载这个布局的时候是加载不出来的,这个时候的解决办法如下:

1.打开AS中的File

2.点击Invalidate Caches

3.点击Invalidate and Restart

猜你喜欢

转载自blog.csdn.net/xiaokang666/article/details/127935531