https://kotlinlang.org logo
#android
Title
# android
t

Tolriq

01/16/2020, 4:16 PM
@jw Trying to use ViewBinding in my project but while the IDE says everything is OK and show the supposedly generated files, compilation that does not work and the import tells me Unresolved reference: databinding. I can't find any error or logs and only related file is a xxx-binding_classes.json containing
Copy code
{
  "mappings": {}
}
To be able to properly report the issue what logs or options should I activate as I'll probably won't be able to generate a small repro case asked by first level triage.
g

Giorgos Neokleous

01/16/2020, 4:18 PM
Are you using the correct Android Studio version? Also, is the viewBinding flag enabled in your gradle?
t

Tolriq

01/16/2020, 4:18 PM
Yes and Yes IDE shows everything OK. (3.6RC1)
p

Paul Woitaschek

01/16/2020, 4:21 PM
Rerun the task, it's often stuck
./gradlew app:assembleDebug --rerun-tasks
👍 1
t

Tolriq

01/16/2020, 4:26 PM
Works thanks. Is there already a bug report about that that I should follow?
p

Paul Woitaschek

01/16/2020, 4:28 PM
I don't think so
Open an issue, I'll star it 🙂
g

Giorgos Neokleous

01/16/2020, 4:35 PM
Good to know 😅 I have been using them for pet projects but never had any issues
t

Tolriq

01/16/2020, 4:38 PM
Will be for tomorrow now 🙂
j

jw

01/18/2020, 1:39 AM
the IDE and CLI builds are unrelated
you should not need to see files on disk for the IDE to work
anyway i'm on vacation until monday so no bugs are being looked at until then
😀 1
8 Views