简体   繁体   English

(React Native) 如何将应用签名密钥上传到 Google Play 控制台?

[英](React Native) How to uploading App Signing Key to Google Play Console?

im developing an app in react native, but i have some problem in deploying to Play Store.我正在用 React Native 开发一个应用程序,但在部署到 Play 商店时遇到了一些问题。 I already generating an upload key using keytool as the react native's documentation said, and i got a file named <my-upload-key>.keystore .我已经使用 keytool 生成了一个上传密钥,正如 react native 的文档所说,我得到了一个名为<my-upload-key>.keystore Im done with editting build.gradle and gradle.properties to configure my upload key.我完成了编辑build.gradlegradle.properties以配置我的上传密钥。

My problem is what should i choose with these options, should i choose "Let Google create and manage my app signing key (recommended)" OR "Export and upload a key and certificate" ??我的问题是我应该如何选择这些选项,我应该选择“让 Google 创建和管理我的应用签名密钥(推荐)”还是“导出并上传密钥和证书”

在此处输入图片说明

Once i choosed the "Let Google create and manage my app signing key" , then my app successfuly uploaded and published in playstore, but when i download it from play store, my app wont open and only show white blank screen.一旦我选择了“让 Google 创建和管理我的应用程序签名密钥” ,我的应用程序就成功上传并发布到 Playstore,但是当我从 Play 商店下载它时,我的应用程序无法打开并且只显示白色的空白屏幕。 My app running well when im using generated APK from react native.当我使用从 React Native 生成​​的 APK 时,我的应用程序运行良好。

If i choose Export and upload a key and certificate , they want the file uploaded as zip file containing the PEM file.如果我选择导出并上传密钥和证书,他们希望将文件上传为包含 PEM 文件的 zip 文件。

Am i miss a step in uploading the app to Play Console?我是否错过了将应用上传到 Play 管理中心的步骤?

Please follow React-native'sofficial documentation for signing APK & Publishing to Playstore请按照 React-native 的官方文档签署 APK 并发布到 Playstore

Just signing with the method described in Official Documentation and Publish to Playstore with "Let Google create and manage my app signing key".只需使用官方文档中描述的方法进行签名,并使用“让 Google 创建和管理我的应用签名密钥”发布到 Playstore。 when you succesfully publish you will get new signing certificate and credential so next time you can use this new certificate for signing your APK .成功发布后,您将获得新的签名证书和凭据,以便下次您可以使用此新证书对您的 APK 进行签名。

If your App was succesfully published but it is not working or getting crashed there must be an error in your App, are you 100% Sure that it was mistake in publishing not in App?如果您的应用程序已成功发布,但无法运行或崩溃,则您的应用程序中一定有错误,您是否 100% 确定是在非应用程序中发布错误?

i already solve my problems.我已经解决了我的问题。 The problem is not on my signing key or upload key or generated keystore.问题不在于我的签名密钥或上传密钥或生成的密钥库。 All is fine by choosing letting google to manage our signing key.通过选择让谷歌管理我们的签名密钥,一切都很好。 But the problem is on the SoLoader in react-native 0.61.4 , many people have same issue with me, the issue was the app being force closed when the app uploaded to playstore or shows only white blank screen.但是问题出在react-native 0.61.4 ,很多人跟我有同样的问题,问题是当应用程序上传到 Playstore 时应用程序被强制关闭或仅显示白色空白屏幕。

The solution is to add some configuration on android/app/build.gradle Here is the code to add in build.gradle解决方法是在android/app/build.gradle上添加一些配置这里是在build.gradle添加的代码

 configurations.all { resolutionStrategy { force "com.facebook.soloader:soloader:0.8.0" } }

add this code to the file's root, all is done.将此代码添加到文件的根目录,一切都完成了。

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

相关问题 将 Android App Bundle 上传到 Google Play 控制台 - 密钥签名错误 - Uploading Android App Bundle to Google Play Console - key signing error 在 Google Play 控制台上传我的 React Native/Expo 应用程序时出错 - Error at uploading my React Native/Expo app on Google Play Console 如何在 Play 管理中心更改应用签名密钥? - How to change app signing key on Play Console? 如何在 Google Play 控制台中为应用程序签名退出 .aab 文件 - How to resign a .aab file for app signing in Google play console Google Play 应用签名证书和上传证书在 Google Play 控制台中创建了相同的 SHA1 密钥 - Both Google Play App Signing Certificate and Upload Certificate created Same SHA1 key in Google Play Console Google Play控制台中的应用签名页面 - App signing page in google play console 使用 Google Play 控制台签署 Flutter 应用程序 - Signing a Flutter App with Google Play Console 如何通过 Google Play 商店获取带有应用签名密钥的 apk? - How to get an apk with app signing key by Google Play Store? 重建 react-native 后 Google Play Console 签名错误/无效签名 - Google Play Console signing error/invalid signature after rebuilding react-native Google Play 控制台 Play 应用签名 - Android App Bundle 未签名 - Google Play Console Play App Signing - The Android App Bundle was not signed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM