Android Databinding : package does not exist

Xero picture Xero · Nov 26, 2015 · Viewed 33.2k times · Source

I'm trying to use data-binding with Android.

I can not anymore build my project. I got this error :

"Error:(13, 46) error: package ch.company.project.databinding does not exist"

Here my gradle :

http://pastebin.com/dkXd1Mxr

and

http://pastebin.com/n9hkFWGQ

And here the gradle output :

https://pastebin.com/w93Rausg

Answer

Xero picture Xero · Nov 26, 2015

Thanks to Yigit!

The issue was not directly link to Android Databinding. There were a bug in the project (some variables not correctly setted)

I would recommend to use gradle with "--debug and --stacktrace" for more informations, it's helping a lot.