title: when I try to get address using geocoder, given a run time error of "Unhandled Exception: PlatformException(failed, Failed, null)"
body: <p>I try to get the location using dart plugin of &quot;geolocation and geocode&quot; using. but the code gives an error of &quot;Unhandled Exception: PlatformException(failed, Failed, null)&quot;. how do I overcome it?</p>
  <pre><code>import 'package:geolocator/geolocator.dart';
  import 'package:geocoder/geocoder.dart';
  
  Future&lt;String&gt; getCurrentLocation() async {
    final location = await Geolocator().getCurrentPosition(desiredAccuracy: LocationAccuracy.high);
    String latitude =(location.latitude).toString();
    String longitude = (location.longitude).toString();
    String _center = latitude + &quot;,&quot; + longitude;
    print(_center);
    final coordinates = await new Coordinates(location.latitude, location.longitude);
    var addresses = await Geocoder.local.findAddressesFromCoordinates(coordinates);
  
    var first = addresses.first;
    print(&quot;${first.featureName} : ${first.addressLine}&quot;);
    return _center;
  }
  </code></pre>