Flutter Android studio build failing

If you are using cloud_firestore: ^0.9.0 Change the following

pubspec.yaml

Add firebase_core: '^0.3.0' to dependencies

android/build.gradle

Add mavenLocal() to buildscripts.repositories and allprojects.repositories

Add classpath 'com.google.gms:google-services:4.2.0' to buildscript.dependencies

android/grandle.properties

Add android.useAndroidX=true and android.enableJetifier=true

android/app/build.gradle

change compileSdkVersion to 28

change dependencies to

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

Add apply plugin: 'com.google.gms.google-services' at the bottom