Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
975 views
in Technique[技术] by (71.8m points)

data binding - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...