简体   繁体   English

Google Places API自动完成错误Android

[英]Google Places API AutoComplete error Android

I followed google tutorial here to implement an autocomplete searching in Android. 在这里遵循了Google教程以在Android中实现自动完成搜索。 once I constructed the app and run it I get this error 一旦构建了应用程序并运行它,我会收到此错误

 returned from sslSelect() with result 0, error code 2
 returned from sslSelect() with result 1, error code 2

any clue ? 有什么线索吗?

Thanks in advance 提前致谢

It was solved for me when I exchanged the API key. 当我交换API密钥时,它为我解决了。 I was using the one under Android device, I changed it to the one "Key for browser apps (with referers)" and it worked for me although I'm using Android device. 我使用的是Android设备下的设备,我将其更改为“浏览器应用程序的密钥(带有引荐来源)”,尽管我使用的是Android设备,但它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM