@UPDATE
Thank you very much. Now at least there are no errors. But it\'s still a far cry from how it worked before - how it should work. Now, the databa
In my case, I clicked the rebuild icon (its guide: "sync project with gradle file") and it solved the problem
Right click on root of the project ex:app select>>Show in Explorer and delete .gradle file and click on the clean OR Built option it will work 100%.
According to this, try to use the new version of gradle : 2.3.0
This issue has been fixed in ag/I6a6ef1a95732118b8e330b64fe4389710a3a2657. Please use newer gradle plugin 2.3.0-beta2 or, if using 2.2.x, disable new packaging by using the "android.useOldPackaging=true" flag.
Its very simple just run ./gradlew clean
If you are using Cordova or Ionic Framework run following commands
cd platforms/android
./gradlew clean
Its easy fix.
Just disable Instant Run:
Android Studio -> Preferences -> Instant Run
Move this line to the BOTTOM of your module:app
build.gradle:
apply plugin: 'com.google.gms.google-services'
Example in the Setup Guide.