在 Google Play 上更新使用 PWA2APK 构建的 PWA 应用程序时出现问题 [英] Problems when updating PWA app built with PWA2APK on Google Play

查看:27
本文介绍了在 Google Play 上更新使用 PWA2APK 构建的 PWA 应用程序时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 PWA2APK 将我的 React 应用程序的第一个版本上传到 Google Play.它工作得很好.但是每次我尝试通过上传新版本来更新应用程序时,我都会得到以下信息:

I have used PWA2APK to upload the first version of my React app to Google Play. It worked great. But every time I try to update the app by uploading a new version, I get the following:

You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint:
SHA1: *******************
and the certificate used to sign the APK you uploaded has fingerprint:
SHA1: **********************
Your APK or Android App Bundle needs to have the package name ****(name_of_previous_version)****.
You need to use a different version code for your APK or Android App Bundle because you already have one with version code 1.

这是我一直遵循的步骤:

Here's the steps I've been following:

对于第一个版本:将 url 粘贴到 PWA2APK 并下载 APK 文件.使用 Google Play 中的 SHA 更改众所周知的目录.将第一个版本的 APK 上传到 Google Play.一切都很好.

For the first version: paste url to PWA2APK and download APK file. change well-know directory with the SHA from Google Play. Upload first version APK to Google Play. All is good.

然后,当我需要发布更新版本的应用程序:更改我的所有文件,将 url 粘贴到 PWA2APK.再次更改众所周知的文件(这次有一个新的 package_name).下载 APK 并尝试上传到 Google Play.那就是显示上述错误的时候.

Then, when I need to release a newer version of the app: change all of my files, paste url to PWA2APK. Change well-know file again (which this time has a new package_name). Download APK and try to upload to Google Play. That's when the above error shows.

  1. 我是否遵循了正确的程序?
  2. 我是否应该将 package_name 更改为与以前的版本相同?
  3. 下载的 APK 文件在上传到 Google Play 之前是否需要更改名称?

顺便说一下,Google Play 控制台告诉我 Google 正在管理我的应用签名密钥.

And by the way, The Google Play console tells me that Google is managing my app signing key.

推荐答案

  1. 包名需要和之前的版本完全一样

  1. The package name needs to be exactly the same as the previous versions

您的应用需要作为发行版应用进行签名,并具有用于签名的相同签名证书.

Your app needs to be signed as a release app and and have the same signing certificate used to sign it.

看到您使用的是在线转换器,这可能是问题所在,因为它会为您生成不同的包名称和证书.

Seeing that you are using an online converter, this is probably the problem as it is generating you different package names and certificates.

这篇关于在 Google Play 上更新使用 PWA2APK 构建的 PWA 应用程序时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆