My top level build.gradle:
buildscript {
ext.kotlin_version = \'1.2.41\'
ext.lifecycle_version = \"1.1.1\"
repositories {
google()
Android Studio failed to import my BR class automatically. All solutions provided above failed. I just had to import the class manually, Android studio had created it correctly.
SAMPLE:
package your_packagename
import your_packagename.BR
import ...
...
I think this happened due to Copy and Paste. When i typed BR
manually, Android Stdio did the Automatic Import.