So, I am getting the following error while running the project after upgrading build.gradle (Project) from
dependencies { classpath \'com.android.too
Try installing via :app:installDebug. If it works then it is related to Android Studio's caches. I removed .gradle/ folder inside my project and it works.
:app:installDebug
.gradle/