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

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

    What worked for me is to remove the id attribute

    android:id="@+id/[id same as filename]"
    

    from the layout resource.

提交回复
热议问题