javaandroidkotlin2-way-object-databindingpackage-name

Data binding not working with Capital Letter package name


I have a Android project who's package name is kind of like this com.example.MyPackage where as MyPackage has two capital letters M and P, Due to them i am not able to use data binding.

When i add data binding and build my project it says not able to guess the name. I found out on stackover flow there are people discussing that it is because you have capital case letters inside package name.


Solution

  • You can change the package name of your code, just don't change/update the application_id from build.gradle file

    PlayStore uses application_id from app-level build.gradle file as identifier