android - databinding does not exist: How to solve it? -
i'm working on android application databinding i've next error:
error: package
my.package.databinding
not exist.
here build.gradle
on project level:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.2' } } allprojects { repositories { jcenter() } } task clean(type: delete) { delete rootproject.builddir }
i've enabled binding in build.gradle
file on module level.
now question is, why occurs error , how solve it?
this problem occurs if project not compile. android databinding should generate code in named package, can't if project doesn't compile in first place.
to solve this, bring project point compiles. if necessary, turn databinding off this.
Comments
Post a Comment