Google Firebase 测试实验室中未显示地图

Google Map not showing in Firebase Test Lab

我使用 Firebase Test Lab Robo Test 来测试我的应用程序,但我发现地图没有显示

我知道我似乎没有正确设置我的地图 API 的包名称和 SHA1。但事实是:

  1. 我的 Google 地图 API 已启用

  2. 包名和keystore文件的SHA1添加到API设置中(debug和release)

  3. 地图可以在我的真实设备上显示,也可以在 Android Studio

    中的模拟器上显示

有什么想法吗?

我怀疑 Firebase 测试实验室 re-signs 您的应用程序用于测试,因此更改了 SHA-1 签名。

基于 Firebase 测试实验室的 Google Play pre-launch 报告提到 app will be re-signed in its docs:

As of October 2017, the pre-launch report uses a new crawler to provide a more comprehensive review of your app. To do so, the pre-launch report must temporarily re-sign your APK or app bundle within our test environment.

我有同样的问题并通过停用 Firebase 测试实验室重新签名来解决:

Pre-launch reports are automatically generated when you publish an app to the open, closed, or internal test track. To disable all pre-launch reports for your app:

Sign in to your Play Console.

Select an app.

Select Release management > Pre-launch report > Settings.

Next to "Enable pre-launch reports," move the switch to the left until it turns gray. If you want to turn pre-launch reports on again at a later time, move the switch back to the right until it turns blue.