Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Databinding : package does not exist

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

like image 384
Xero Avatar asked Nov 26 '15 08:11

Xero


2 Answers

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.

like image 86
Xero Avatar answered Oct 19 '22 20:10

Xero


earlier my package name was "com.xyz.abc.Models" changing the package name to all small letters "Models" -> "models"

solved the issue.

like image 30
Kamlesh Sahu Avatar answered Oct 19 '22 19:10

Kamlesh Sahu