英文:
How to Update a flutter app on already published native android using java app in play console
问题
我在Google Play商店发布了一个原生应用,包名为例如(com.hamzamuazzam.foo),我想要更新我的应用,现在它是用Flutter制作的,并且我已经在代码中进行了所有必要的更改。
新的Flutter应用使用与之前相同的包名(com.hamzamuazzam.foo),而该包名是已经在Google Play商店中发布的旧原生应用的包名。
现在,我主要的问题是,我是否可以在不更改Google Play商店中的包名的情况下,更新我的新Flutter应用,而这个包名与之前的原生应用相同,
Google Play控制台是否允许我将新的Flutter应用以相同的包名更新到已有的原生应用上?
英文:
I have published a native app with package name e.g (com.hamzamuazzam.foo) in Google Playstore and I want to update my app that is now made in flutter , also have made all the necessary changes in my code.
new flutter app made with same package name (com.hamzamuazzam.foo) as old native app that is already published in google playstore.
Now, my main question is that can I update my new flutter App with Native app without changing the Package name in google play store ,
will Google play console allow me to update flutter app with same package name over the same native app?
答案1
得分: 15
可以,您可以更新您的应用程序。一般来说,更新只需要遵循三条规则:
- 包名称必须完全相同。
versionCode
必须大于先前发布的应用程序的versionCode
。- 应用程序必须使用与之前相同的签名密钥进行签名。
除此之外,无论您是使用 Kotlin/Java、Flutter、Xamarin、React Native、Cordova 还是任何其他技术来创建您的 APK 或 Android 应用捆绑包,都没有关系。
英文:
Yes, you can update your app. Generally speaking, only three rules apply for updates:
- The package name must be identical.
- The
versionCode
must be greater than theversionCode
of the previously released app. - The app must be signed with the same signing key as before.
Besides that, it doesn't matter if you create your APK or Android App Bundle with Kotlin/Java, Flutter, Xamarin, React Native, Cordova or any other technology.
答案2
得分: 3
@Alex的回答很完美,但我想用以下内容详细说明一下(针对Flutter场景):
-
是的,包名必须相同,这可以在Android(Flutter版本)的
AndroidManifest.xml
文件中进行验证。 -
当我们谈论
versionCode
和versionName
时,这些信息是从Flutter的pubspec.yaml
文件中获取的,其中包含version
属性。这个属性的形式为0.3.2+3
,其中0.3.2
对应于versionName
,而3
(加号后面的数字)对应于versionCode
。是的,versionCode
必须大于先前发布的应用的versionCode
。
最后,用于签署Flutter版本的keystore-password-alias
必须与用于签署Android原生版本的相同。
考虑到所有这些,您将能够顺利进行更新。
英文:
@Alex's answer is perfect, but I'd like to detail the info with the following (for Flutter scenario):
-
Yes, the package name must be identical, and this can be verified within Android's (Flutter version)
AndroidManifest.xml
file. -
When we're talking about the
versionCode
andversionName
, this info is obtained from Flutter'spubspec.yaml
file withversion
attribute. This attribute has the form of0.3.2+3
where0.3.2
corresponds toversionName
and3
(the number after+
sign) toversionCode
. And yes, theversionCode
must be greater than theversionCode
of the previously released app
And finally, the keystore-password-alias
used to sign Android Flutter's version must be the same used to sign the Android's native release.
Taking all of this into consideration will allow you to do the update smoothly.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论