I am getting this error: Here is my build.gradle(Module:app)
apply plugin: \'com.android.application\'
apply plugin: \'io.fabric\'
android {
compileSdkV
If this problem occurred to you suddenly, it may be that it was corrupted while generating the apk. This rarely happens
Solution: rebuild tasks
you can see it in this image
Have you tried adding this in your dependencies:
implementation 'com.google.android.gms:play-services-basement:15.0.0'
I was using a VPN for internet connection. I closed VPN and it worked for me.
Just Build → Clean Project worked for me
Using the VPN solved my problem.
Open top-level build.gradle file and add google-services:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath 'com.google.gms:google-services:4.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
also if you already have it added simply update google-service and gradle to the latest