Question

Cannot resolve symbol 'ResultProfileBinding'

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'

enter image description here

Here is what I've done. But still getting that cannot resolve symbol error.

enter image description here enter image description here enter image description here

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?

 46  12425  46
1 Jan 1970

Solution

 127

It's based on your layout file name. If your layout's filename is activity_language.xml then your binding class would be ActivityLanguageBinding.

2020-03-01

Solution

 1

you can find the file in

project_dir/app/build/generated/data_binding_base_class_source_out/debug/out

2021-12-25