The layout in layout has no declaration in the base layout folder [error]

前端 未结 22 2865
粉色の甜心
粉色の甜心 2021-01-31 13:05

After migrating to Android Studio 3.2, API 28, I am getting the following error on my app\'s layout:

The layout in layout has no declaration in the base lay

22条回答
  •  [愿得一人]
    2021-01-31 13:48

    In my case the same error was showing because layout-land file and layout filename was different.

    My Case: layout-land -> my_layout_land layout -> my_layout

    I solved it by making both filenames the same. Because if you are using layout-land and you have a file in layout-land then you must have a file in layout folder also.

提交回复
热议问题