我在我的应用程序中使用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'
}
}
2条答案
按热度按时间gwbalxhn1#
我已经深入研究了这个问题(
Error retrieving information from server. [RH-01]
),显然当我们遇到"无效"设备ID时会发生这种情况。我发现一些故障排除方法可以尝试,但最后我认为您应该联系Play Store支持。在这个page中,有几个关于故障排除步骤的评论。Tech Bae说:
在Google Play商店中有五种解决方案来修复
Error Retrieving Information from Server RH-01
。要获取有关如何在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坎·科尔克马兹:
来源:http://wikitechsolutions.com/20570/how-to-fix-error-retrieving-information-from-server-rh-01
如果这些选项都不起作用,我会尝试Get Help from Google Play。然后,您可以使用JSON和proguard配置重试。
8i9zcol22#
整整一个月后,我找到了答案,原来我没有将此权限添加到app/src/main/AndroidManifest.xml文件,所以当我编辑它时,一切都正常