Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no "ActivityPostListDataBinding" class #10

Open
sharkboy777 opened this issue Feb 26, 2019 · 3 comments
Open

There is no "ActivityPostListDataBinding" class #10

sharkboy777 opened this issue Feb 26, 2019 · 3 comments

Comments

@sharkboy777
Copy link

sharkboy777 commented Feb 26, 2019

unresolved reference error for "ActivityPostListBinding"

@drcabral
Copy link

drcabral commented May 5, 2019

You just need to follow the article steps and build the app at the point that he says to add the reference to this class. The class for the databinding will be generated.

@Wesely
Copy link

Wesely commented May 13, 2019

Ran into same problem, because I missed this session in the app.gradle,

    dataBinding {
        enabled = true
    }

It also makes the annotation @BindingAdapter not found, fyi.

@ZakharchenkoWork
Copy link

For those how don't follow exact guide like me, and want to use different file names.
Here is a hint. at that point you will need Make project and then, type between imports somthing like:

import {your root package}.databinding. (And press Ctrl+Space)

You will see generated class name there.
for my EventsListFragment I had to put
import com.hast.norvialle.databinding.FragmentListBinding
So for me, it was quite unclear, what was the exact name of the generated class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants