gpt4 book ai didi

android - 谷歌地图适用于 Android Release APK 但不适用于 AAB

转载 作者:行者123 更新时间:2023-12-03 23:08:54 29 4
gpt4 key购买 nike

我有一个用 Xamarin.Android 开发的应用程序,我最近添加了一张 map 。我在开发者控制台中创建了我的 key ,并使用我的指纹来限制它以进行调试和发布。在调试 map 工作正常。

如果我构建了发布应用程序的 APK 并对其进行签名(使用我用来获取指纹的证书)并将应用程序部署到我的手机上,那么 map 就可以正常工作。

如果我构建了一个 AAB(AppBundle)并使用相同的证书对其进行签名并在 Play 商店上发布该应用程序并在我的手机上下载该应用程序,我会得到一个只有 Google 和缩放按钮的空白屏幕。

当然,Google 现在希望您上传 AAB,而不是 APK,但我无法让 map 正常工作。这是相同的应用程序,相同的代码,相同的证书,在同一部手机上进行测试,唯一的区别是构建时选择 apk 或 bundle 。

有人遇到过这个问题吗?

最佳答案

问题是文档 https://docs.expo.io/versions/latest/sdk/map-view/#deploying-to-a-standalone-app-on-android提到您必须通过在 pc 中运行命令来获取 Google 证书指纹,但事实是,您必须从应用程序的开发者游戏商店页面获取该证书。

你可以看到:

If you've enabled Google Play's app signing service, you will need to grab their app signing certificate in production rather than the upload certificate returned by expo fetch:android:hashes. You can do this by grabbing the signature from Play Console -> Your App -> Release management -> App signing, and then going to the API Dashboard -> Credentials and adding the signature to your existing credential.

关于android - 谷歌地图适用于 Android Release APK 但不适用于 AAB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60152751/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com