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

Wednesday, November 23, 2022

When enable setPersistenceEnabled(true). Firebase Realtime Database retrieving old data ?

 When enable setPersistenceEnabled(true). Firebase Realtime Database retrieving old  data ?

its showing old data. for that u have to add one more line.

FirebaseDatabase.getInstance().setPersistenceEnabled(true);
FirebaseDatabase.getInstance().getReference().keepSynced(true);

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...