Skip to content Skip to sidebar Skip to footer

"the Constructor Geocoder(context, Locale) Is Undefined"?

I am making an android app, and need to use Google maps' reverse geocoding. The relevant code is: Geocoder geoCoder = new Geocoder(getApplicationContext(), Locale.getDefault());

Solution 1:

The constructor Geocoder(Context, Locale) is defined. Check if you import the correct class

 android.location.Geocoder

here the documentation

Post a Comment for ""the Constructor Geocoder(context, Locale) Is Undefined"?"