Tuesday, November 29, 2022

Data Binding is not working after we change the package name...? Android Studio

  Data Binding is not working after we change the package name...?Android Studio


Solution:


1. Build > Clean Project


2.Go to your Build.gradle (Module) and disable databinding:


android {

    buildFeatures {

        viewBinding false

    }

}


3.File > Sync Project with Gradle Files


4.Build > Rebuild Project ,Now enable databinding again:


android {

   buildFeatures {

        viewBinding true

    }

}


5.File > Sync Project with Gradle Files

No comments:

Post a Comment

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...