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

前端 未结 22 2871
粉色の甜心
粉色の甜心 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:51

    What solved it for me:

    In Android Studio, right-click on the filename in the layout directory, and choose Reformat code, with no special tickbox selected on the next screen.

    Not sure what exactly goes on under the hood here, but that worked.

提交回复
热议问题