title: Error in compilation with Geolocator pluggin
body: <p>I'm getting the current error when compiling a project with <a href="https://pub.dev/packages/geolocator" rel="noreferrer">Geolocator pluggin</a>:</p>
  <pre class="lang-none prettyprint-override"><code>C:\src\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 &gt;= Build.VERSION_CODES.S) {
                                                      ^
    symbol:   variable S
    location: class VERSION_CODES
  C:\src\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(&quot;is_mocked&quot;, 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'.
  &gt; Compilation failed; see the compiler error output for details.
  </code></pre>
  <p>I have already created another project to test if the error would occur, and when importing the package, the error occurs as well. I followed the gradle.properties configuration
  and set the compileSdkVersion to 30 and checked the Flutter Doctor too, everything is ok, but the error still persists. Does anyone know what might be causing this?</p>