How can I make the `PlaceAutocompleteFragment` resolved?
For uses of PlaceAutocompleteFragment
we need to add one lib in gradle
add this
implementation 'com.google.android.gms:play-services-places:16.0.0'
in your gradle of Android Application.I have checked this in my Android studio. Please let me know if your problem is solved.
Check version (16.0.0 at the time of writing) of play-services here.
(From the comment below)
Just change your compile library in gradle from "locations" to "places"
for example
change
compile 'com.google.android.gms:play-services-location:"yourversion"'
to
compile 'com.google.android.gms:play-services-places:"yourversion"'
You need to add one lib in gradle add this
compile 'com.google.android.gms:play-services-location:10.0.1'
use same version "10.0.1" or what you have currenty in your gradle in both services.
Example:-
compile 'com.google.android.gms:play-services-maps:10.0.1'
compile 'com.google.android.gms:play-services-location:10.0.1'