flutter Google Play内部测试版本未从/向Firebase检索或上传任何数据

3duebb1j  于 2022-11-30  发布在  Flutter
关注(0)|答案(2)|浏览(197)

我在我的应用程序中使用firebase,在debug apk中(使用模拟器)一切正常,但当我在google play中构建一个发布版本并下载应用程序时,数据未加载或显示在应用程序中,我无法在firebase firestore中添加或删除任何内容。我已在firebase中添加了发布版本SHA1指纹,如此链接SHA1 fingerprint中所示,但未再次下载google-services.json,我还发现了类似的问题here,并尝试设置ProGuard配置,如在此问题ProGuard配置中所示,但我proguard-rules.pro在我的应用程序中找不到www.example.com文件,因此我只是将其添加到build.gradle(app)

buildTypes {
    debug {
        minifyEnabled true  // shrink
        useProguard false   // don't obfuscate

        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }

    release {
        signingConfig signingConfigs.release
        minifyEnabled true  // shrink
        useProguard true    // obfuscate

        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
gwbalxhn

gwbalxhn1#

我已经深入研究了这个问题(Error retrieving information from server. [RH-01]),显然当我们遇到"无效"设备ID时会发生这种情况。我发现一些故障排除方法可以尝试,但最后我认为您应该联系Play Store支持。在这个page中,有几个关于故障排除步骤的评论。
Tech Bae说:
在Google Play商店中有五种解决方案来修复Error Retrieving Information from Server RH-01

  • 解答1-设置正确的日期和时间
  • 解决方案2-重新启动您的Android设备
  • 解决方案3-清除Google Play商店的缓存和数据
  • 解决方案4-重新添加您的Google帐户
  • 解决方案5-工厂重置你的Android手机(它会擦除你所有的数据)

要获取有关如何在Google Play商店中修复Error Retrieving Information from Server RH-01的详细教程,请访问此网页-http://www.techbae.com/fix-error-retrieving-information-from-server-rh-01-google-play-store/
Oozie坎·科尔克马兹:

  • 转到:设置-〉应用程序管理器-〉Google Play商店-〉强制停止。
  • 转到:设置-〉应用程序管理器-〉Google Play商店-〉清除数据。
  • 转到:设置-〉应用程序管理器-〉Google Play商店-〉清除缓存。

来源:http://wikitechsolutions.com/20570/how-to-fix-error-retrieving-information-from-server-rh-01
如果这些选项都不起作用,我会尝试Get Help from Google Play。然后,您可以使用JSON和proguard配置重试。

8i9zcol2

8i9zcol22#

整整一个月后,我找到了答案,原来我没有将此权限添加到app/src/main/AndroidManifest.xml文件,所以当我编辑它时,一切都正常

<uses-permission android:name="android.permission.INTERNET"/>

相关问题