小编Joa*_*uin的帖子

由于 API 密钥无效(格式错误或丢失),操作失败

使用适用于 IOS 的 Google 代码,描述如下:自动完成

\n\n

用户在搜索框中输入第一个字符时,会发生错误:

\n\n
Error:  The operation couldn\xe2\x80\x99t be completed. Operation failed due to an invalid (malformed or missing) API key. See the developer\'s guide (https://developers.google.com/places/ios-sdk/start) for information on creating and using an API key.\ndespite that calls to the API were successful:\nGMS Services Key Valid:  true\nGMS Services SDK version:  3.3.0\nGMS Places Key Valid:  true\nGMS Places SDK version:  3.3.0\n
Run Code Online (Sandbox Code Playgroud)\n\n

这是应用程序的跟踪:

\n\n
2019-08-17 16:46:52.056351-0400 GPDemo[345:15310] [DYMTLInitPlatform] platform initialization successful\nEntering AppDelegate.swift now...\nSending API key to Google Services …
Run Code Online (Sandbox Code Playgroud)

google-maps ios google-places-api swift

5
推荐指数
1
解决办法
9881
查看次数

标签 统计

google-maps ×1

google-places-api ×1

ios ×1

swift ×1