Once i upgraded to Flutter 2.5.1 my project stops build and run, giving this error:
/Users/admin/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_android-2.0.0/android/src/main/java/com/baseflow/geolocator/location/LocationMapper.java:29: error: cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { ^
symbol: variable S location: class VERSION_CODES /Users/admin/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_android-2.0.0/android/src/main/java/com/baseflow/geolocator/location/LocationMapper.java:30: error: cannot find symbol position.put("is_mocked", location.isMock()); ^ symbol: method isMock() location: variable location of type Location 2 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':geolocator_android:compileDebugJavaWithJavac'. Compilation failed; see the compiler error output for details.
Any idea?