Out of nowhere, the build is crashing with a strange error related to the location component , the error is in the "src..\location\FlutterLocationService.kt:"
Here is the error:
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\location-4.3.0\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (124, 1): Class 'FlutterLocationService' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
Well, I solved the problem just making 3 differences. First you will put "override" before the "fun" keyword. Then delete the question marks in front of "Array" this and "grantResults: IntArray" this.
It should be "Array?" , "grantResults: IntArray?" like this at the beginning just delete the question marks.