Cannot import Place.Field.NAME, LAT_LNG, ADDRESS in Google Places SDK 5.x

3 days ago 7
ARTICLE AD BOX

I am using the new Google Places SDK in my Android app.

places = "5.1.1" places = { module = "com.google.android.libraries.places:places", version.ref = "places" } val fields: List<Place.Field> = listOf( Place.Field.ID, Place.Fie ld.NAME, Place.Field.LAT_LNG, Place.Field.ADDRESS ) val intent = Autocomplete.IntentBuilder(AutocompleteActivityMode.FULLSCREEN, fields) .setCountry("IN") .build(this)

But the class doesn't contain these fields.

What is the correct dependency or import for accessing Place.Field in the latest Places SDK?

Read Entire Article