title: warnings found and -Werror specified [deprecation] LocationProvider in android.location has been deprecated
body: <p>I facing the error: warnings found and -Werror specified</p>
  <pre><code>/Users/sdaemoninfotech/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-6.2.1/android/src/main/java/com/baseflow/geolocator/location/LocationManagerClient.java:10: warning: [deprecation] LocationProvider in android.location has been deprecated
  import android.location.LocationProvider;
                         ^
  error: warnings found and -Werror specified
  /Users/sdaemoninfotech/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-6.2.1/android/src/main/java/com/baseflow/geolocator/location/LocationMapper.java:29: warning: [deprecation] isFromMockProvider() in Location has been deprecated
        position.put(&quot;is_mocked&quot;, location.isFromMockProvider());
                                          ^
  1 error
  2 warnings
  warnings found and -Werror specified
  </code></pre>
  <p>I tried to downgrade flutter too. still facing the error</p>
  <p><a href="https://i.stack.imgur.com/xDrsc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xDrsc.png" alt="enter image description here" /></a></p>