Android Databinding : package does not exist

前端 未结 15 1294
暗喜
暗喜 2020-12-06 04:19

I\'m trying to use data-binding with Android.

I can not anymore build my project. I got this error :

\"Error:(13, 46) error: package ch.compan

15条回答
  •  不知归路
    2020-12-06 04:45

    To get rid of this error just enclose your complete layout design inside a plain layout tag in the activity_main.xml file.

    After wasting many hours in finding solution this worked for me. Give it a try.

提交回复
热议问题