android / android/architecture-samples

[todo-mvp-databinding] DataBinding class does not generated automatically

Open
#658 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
45.8k
Forks
11.9k
PR merge metrics
No merged PRs in 30d

Description

Android Studio and Gradle Version:3.4.1
Gradle Plugin Version:5.1.1
kotlin support

code:
dataBinding {
enabled = true
}
annotationProcessor "com.android.databinding:compiler:3.1.4"

Earlier, I use version 3.0.1 and 4.1. It worked well, DataBinding class can be generated automaticlly.
When i upgrade to 3.4.1 and 5.1.1. The databinding class does not generated automatically,
it can be generated after rebuild (or "make project", or keymap command + F9).

when i use kapt "com.android.databinding:compiler:3.1.4", it also not work.

What should i do to make databinding class be generated automatically

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Android Studio 3.4.1, Gradle Plugin 5.1.1, the shown dataBinding block, and the annotationProcessor declaration. Compare automatic generation with generation after rebuild or Make Project; done means the DataBinding class is generated without a manual rebuild.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.