How can I make the PlaceAutocompleteFragment
resolved?
I am trying to use the new PlaceAutocompleteFragment
. I try to use the following code:
<fragment
android:id="@+id/place_autocomplete_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:name="com.google.android.gms.location.places.ui.PlaceAutocompleteFragment"
/>
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.