Fix google gms services version conflict

So, this error showed up when I tried to update gms google services for push notifications. Error:Execution failed for task ‘:app:processDebugGoogleServices’. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at or updating the version of to 9.0.0. Currently, I … Read more

How to check connection in android

This is how to check connection in android whether your phone is connected to the internet or not. put this function inside your public class. private boolean isConnected() { ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Activity.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); if (networkInfo != null && networkInfo.isConnected()) return true; else return false; }