Google Place Api: Requests from this Android client application com.package.name are blocked

后端 未结 1 1857
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-28 11:16

I am using PlaceAutocompleteFragment and when i click on search field PlaceAutocompleteFragment dialog disappear then i get this error :

{\"e

1条回答
  •  不思量自难忘°
    2021-01-28 11:41

    It seems like you are getting the error due to wrong SHA1 fingerptint because you have to add SHA1 based on your app's digital certificate.

    In Your question you mentioned that the app is working fine when you run the app in debug-configuration(directly from the Android Studio). So i think it's working fine because you have entered the SHA1 for your debug-certificate. So you have to add the SHA1 for your release configuration as well to work with the API while you run the app in release-configuration(Signed apk with key-store).

    You can get more idea about A debug certificate and A release certificate from here

    0 讨论(0)
提交回复
热议问题