Reputation: 741
Good day,
I'm just upgrading my android studio to the latest version (3.6.1) and I'm just want to try the new features of version 3.6.1 which is the ViewBinding. I followed the setup instruction from this site https://developer.android.com/topic/libraries/view-binding?utm_medium=studio-assistant-stable&utm_source=android-studio-3-6 but I don't know why I'm still having this error: Cannot resolve symbol 'ResultProfileBinding'
Here is what I've done. But still getting that cannot resolve symbol error.
My android studio 3.6.1 is the latest stable version that I've downloaded from the official website and the viewbinding feature is on the list of new features of this version so I am sure that I am missing something. Does anyone know how to solve this?
Upvotes: 48
Views: 12999
Reputation: 1306
It's based on your layout file name. If your layout's filename is activity_language.xml
then your binding class would be ActivityLanguageBinding
.
Upvotes: 129
Reputation: 21
you can find the file in
project_dir/app/build/generated/data_binding_base_class_source_out/debug/out
Upvotes: 1
Reputation: 139
I had the same issue with Fragment layout file: fragment_xyz.xml
The auto complete will do the rest for start typing XyzFragmentBinding...
Upvotes: 0