https://kotlinlang.org logo
c

chi

06/08/2016, 1:16 AM
I think I figured out why. the fragment returned by
findFragmentById
is located in
android.support.v4.app
package, why the fragment which
PlaceAutocompleteFragment
extends is located in a different package So, Instead of using
PlaceAutocompleteFragment
, I should be using
SupportPlaceAutocompleteFragment
And that fixed it, So the compiler wasn't wrong afterall!