【发布时间】:2019-06-20 15:46:54
【问题描述】:
我在我的 android 应用程序中使用谷歌地图,并且地图已成功加载到我的应用程序中。 我用这段代码在我的应用程序中初始化谷歌地图:
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Places.GEO_DATA_API)
.addApi(Places.PLACE_DETECTION_API)
.addApi(LocationServices.API)
.enableAutoManage(this, this)
.build();
而且 google places api 对我来说非常好用,但是今天使用 place auto complete 时出错! 这是第一次发生此错误:
Status{statusCode=PLACES_API_INVALID_APP, resolution=null}
我使用了正确的 api 密钥,并且我的所有代码都是正确的,因为它一直有效。 但是突然出现了这个错误。 请帮助我:)提前谢谢
【问题讨论】:
标签: android google-maps google-places