如何使用现有应用程序密钥库获取带签名的apk? [英] How to get signed apk for flutter with existing app keystore?

查看:140
本文介绍了如何使用现有应用程序密钥库获取带签名的apk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上传一个示例flutter应用程序,以代替具有相同软件包的现有应用程序。如何使用现有密钥库详细信息构建签名的APK

解决方案

如果您使用 Android Studio 作为下面的链接中给出的步骤,然后不用担心。



有关更多信息,请检查此链接





然后选择新窗口选项,如下所示





第2步:



等待一段时间,直到项目同步。之后,
进入菜单栏中的 Build-> GenerateSigned Bundle / APK ... 选项,如下所示





第3步:



选择图片 Android App Bundle或APK 选项根据您的需要。 (Android App Bundle是最佳解决方案),然后单击下一步按钮。





步骤4:



选择选择现有... 选项以生成已签名包含现有密钥库详细信息的APK。(当您将flutter应用程序替换为具有相同软件包的现有应用程序时。)



选择密钥存储路径密钥存储文件 .jks 文件存储的位置。 [项目目录中的路径。] (如上面的链接所述)]



然后填写所有选项,即



密钥存储密码



密钥别名



密钥密码



,然后单击 Next 按钮,如下所示...





第5步:



选择选项



构建变体-发布



签名版本分别为 V1和V2 ,如屏幕截图所示,然后单击完成按钮,如下所示。





第8步:



等待



,最后您将成功成功生成 Generate Signed APK:(APK)生成。然后点击查找选项,获取生成签名的APK文件的位置。如下所示。





您成功生成了Signed APK,可以更新flutter应用程序,而不是使用相同软件包替换现有应用程序。


I want to upload a sample flutter app in place of existing application with same package. How to build signed apk with existing keystore details

解决方案

If you generated previous fresh Signed APK using Android Studio as steps given in bellow link then don't worry.

For more info check this link

stackoverflow.com/questions/55536637/how-to-build-signed-apk-from-android-studio-for-flutter/60163484#60163484

Now just follow the following steps to build signed apk with existing keystore details.

IMPORTANT

Before generating Signed APK with existing keystore details make sure upgrade each time your Flutter Version from pubspec.yaml file and Version Code from local.properties file.

For example

If previous flutter version code in pubspec.yaml file is

version: 1.0.0+1 then change it or upgrade it to the version: 1.0.0+2 or any other greater number than previous after + sign.

And if flutter.versionCode in Project -> android -> local.properties is

flutter.versionCode=1 then change it or upgrade it to the flutter.versionCode=2 or any other greater number than previous code. [This Version Code is important while releasing your app on Google Play Console with existing app i.e. for release New Update]

After that follow the steps bellow -

Step 1:

Go to in your project & then Tools -> Flutter -> Open for Editing in Android Studio as shown below

Then Select New Window option as shown below

Step 2 :

Wait for while until project synchronization. After that Go to Build -> GenerateSigned Bundle/APK... option from menu bar as shown bellow

Step 3 :

Select Android App Bundle or APK Option as per your need. (Android App Bundle is best solution) and click Next button.

Step 4 :

Select Choose existing... option to generate Signed APK with existing keystore details. (When you upload flutter app in place of existing application with same package.)

Select Key store path where your key store file .jks file stored. [The path within your project directory.] (as mentioned above link)]

Then fill the all options i.e.

Key store password

Key alias

Key Password

and Click Next button as shown bellow...

Step 5 :

Select options

Build variants - release and

Signature versions both V1 and V2 respectively as shown above screen shot and click Finish button as shown bellow.

Step 8 :

Wait for a while until Gradle Build Running process.

and finally you will get the Generate Signed APK : (APKs) generated successfully. from that click on Locate option to get Location of your Generate Signed APK File. as shown bellow.

That's it you generated Signed APK successfully for update your flutter app in place of existing application with same package.

这篇关于如何使用现有应用程序密钥库获取带签名的apk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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