简体   繁体   English

谷歌地图在发布apk中显示空白屏幕,在调试模式下工作正常

[英]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 它工作正常,直到前天.....但现在它不工作

enter image description here 在此输入图像描述

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密钥,如此处所述

api key for dubug and release mode 用于dubug和释放模式的api键

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

相关问题 Google地图无法在发布模式下运行,但在调试模式下可以正常运行 - Google maps not working in release mode but working fine in debug mode 具有释放模式的黑屏,应用程序无法启动。 在调试模式下工作正常 - Blank screen with release mode, app does not start. Working fine in debug mode 调试apk工作正常但签署后生成发布apk,它在cordova离子项目中显示一个白色的空白屏幕 - Debug apk is working fine but after sign it and generate release apk , its showing a white blank screen in cordova ionic project Flutter - DEBUG 中的 Webview 正在工作,但在 RELEASE apk 上显示为空白,为什么? - Flutter - Webview in DEBUG is working but it's displaying blank on RELEASE apk, why? Flutter apk 在发布模式和调试模式下运行良好,但内置 apk 不工作? - Flutter apk running fine in release mode and debug mode but built apk not working? 调试 APK 工作正常,发布(签名)不 - Debug APK working fine, Release (signed) not 调试和发布APK后,Google地图未显示 - Google Maps not showing after debug and release APK Firebase OTP 在调试 apk 上工作正常,但不能发布 apk - Firebase OTP working fine on debug apk but not release apk Google Maps为空白[Android]发布模式 - Google Maps is blank [Android] Release Mode Android Google Maps在发布模式下为空白 - Android Google Maps is blank in release mode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM