androidandroid-studio-3.6

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?


Solution

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