Google 地方自动完成不起作用?

Google place Autocomplete is not working?

Android google 地方自动完成在 gradle 版本 3 中工作正常。0.But 当我将 android studio 更改为 3.0 和 gradle 4.0 版 Google 自动完成功能无法正常工作,其组件无法解析。

为了解决这个问题,我将 gradle 依赖项更新为新的依赖项,然后再次清理并重建项目,但它也无法正常工作。这是我在 gradle 版本 3.0

中使用的库

compile 'com.google.android.gms:play-services-maps:9.0.1'

compile 'com.google.android.gms:play-services-location:9.0.1'

所以请帮我解决这个问题。

这些是最新的依赖项(包括地图、地点和位置):试试这些

// Google Play Services \
    compile 'com.google.android.gms:play-services-maps:11.8.0'
    compile 'com.google.android.gms:play-services-location:11.8.0'
    compile 'com.google.android.gms:play-services-places:11.8.0'
    //-----------------------\