[英]Google Maps displaying blank screen in release apk, working fine in debug mode
Developed an application which uses Google Maps for displaying few locations which are obtained from our services. 开发了一个应用程序,该应用程序使用谷歌地图显示从我们的服务获得的几个位置。
app-debug.apk : Google Map working fine and displaying all locations. app-debug.apk:Google Map工作正常并显示所有位置。
app-release.apk : Google Map is displaying like a blank screen with Google water mak at bottom left corner. app-release.apk:谷歌地图显示为一个空白屏幕,左下角有Google water mak。
Please helpme regarding this.... 关于这个请帮助....
its worked fine till day before yesterday..... but now its not working 它工作正常,直到前天.....但现在它不工作
Debug SHA-1 certificate fingerprint will be different from production(signed) SHA-1 certificate fingerprint , so you need to set both debug SHA-1 fingerprint and production(signed) keystore SHA-1 fingerprint for same package. 调试SHA-1证书指纹将与生产(签名)SHA-1证书指纹不同,因此您需要为同一个包设置调试SHA-1指纹和生产(签名)密钥库SHA-1指纹。
To get Keystore SHA-1 fingerprint you can use following command 要获取Keystore SHA-1指纹,您可以使用以下命令
keytool -list -v -keystore mystore.keystore
go to location of your keystore from terminal and replace mystore.keystore with your generated keystore. 从终端转到密钥库的位置,并将mystore.keystore替换为生成的密钥库。
you should add api key for both mode debug and release mode as discussed here 您应该为模式调试和释放模式添加api密钥,如此处所述
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.