Error: Type com.google.android.gms.common.internal.zzg is referenced as an interface from `com.google.android.gms.internal.zzij`
You might need to remove implementation 'com.google.android.gms:play-services:12.0.1'
And replace it with
implementation("com.google.android.gms:play-services-gcm:12.0.1") {
exclude group: "com.google.android.gms"
}
BEFORE AFTER