Does i need different SHA1 key to perform Google Map

本小妞迷上赌 提交于 2019-12-03 15:34:49

When deploying your app as debug build, the problem is that at home your debug.keystore is different than at work. In your office, you used that debug.keystore to generate the SHA1 key which you used for generating the Google Maps API Key. When you deploy your app at home now, another debug.keystore is used and the key doesn't match.

The easiest way would be to copy your the debug.keystore file from your work environment and use it at home. But you can also enter multiple SHA1 keys in your Google API console like this (for every environment you use which means you need to create SHA1 keys for the debug.keystore files of all your environments):

AB:0A:05:...:12;com.example
CD:35:01:...:2B;com.example

The same problem appears when you deploy as release build (using the keystore file you need to generate when exporting your Android App as APK file)

See also: http://developer.android.com/tools/publishing/app-signing.html#debug-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!