1

I converted a java data binding project into a kotlin data binding project. After compiling and trying to build facing the issue

Unable to find the ActivityMainDataBindingImpl.

Tried multiple solution it was not working.

Enabled in gradle.properties:

android.databinding.enableV2=true

build.properties:

viewBinding {
    enabled = true
}
dataBinding {
    enabled = true
}

classpath 'com.android.tools.build:gradle:3.6.3'

1
  • Did you find anything about this error? Commented Aug 27, 2020 at 13:28

1 Answer 1

1

Not much said in the question, so it is not possible to give a more accurate answer.

I do not know enough about gradle 3.6.3, but can say that with com.android.tools.build:gradle:4.0.1

in build.gradle (module) it should be:

android {
   ...
    buildFeatures {
        dataBinding true
        viewBinding true
    }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.