I had this same issue and I was able to solve it by renaming my build.gradle.kts to build.gradle was the same as the settings page in the Android folder, and after that I could run the 'flutterfire configure' command in the terminal without getting any errors.