android – How can I make the `PlaceAutocompleteFragment` resolved?-ThrowExceptions

Exception or error:

How can I make the PlaceAutocompleteFragment resolved?

Hi guys, I’m trying to use the new PlaceAutocompleteFragment. I try to use the following code:


This code sample is just a copy. It is from this site. However PlaceAutocompleteFragment is unresolved in my case. How can I fix this issue? I think the solution must be very easy. However I have been looking for quite some time.

How to solve:

For uses of PlaceAutocompleteFragment we need to add one lib in gradle
add this

implementation ‘’

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


compile ‘”yourversion”‘


compile ‘”yourversion”‘


You need to add one lib in gradle add this

compile ''

use same version “10.0.1” or what you have currenty in your gradle in both services.


compile ''
compile ''


implementation ''
but still was facing problem with ‘PlaceAutocompleteFragment’

Need to add

implementation ''

Leave a Reply

Your email address will not be published. Required fields are marked *