databinding does not exist: How to solve it?

前端 未结 8 1085
生来不讨喜
生来不讨喜 2021-01-01 20:37

I\'m working on an Android application with databinding but I\'ve always next error:

Error: Package my.package.databinding

8条回答
  •  一个人的身影
    2021-01-01 21:12

    This problem occurs usually if your project does not compile. Android databinding should generate code in the named package, but it can't do that if the project doesn't compile in the first place.

    To solve this, bring your project to a point where it compiles. If necessary, turn databinding off for this.

提交回复
热议问题