zoukankan      html  css  js  c++  java
  • Flutter Android 正式打包、以及升级应用 重新打包

    Flutter Android 正式打包

    打开androidStudio软件

    1.修改版本号。

    android->app->src->main->AndroidManifest.xml中的 android:versionCode="2" android:versionName="1.0.2"

    2.打开flutter项目中的android文件夹。

    3.依次点击android Studio上面的Build-> Generate Signed Bundle/APK... ->APK

    4.第一次打包的话,需要创建New Key Store

      1)选择存储key的目录。(Key store path)

      2)设置签名的密码。(Password和Confirm)

      3)设置应用的别名。(Alias)

      4)设置Key的密码。(Key中的 Password和Confirm)可以和签名的密码一致

      5)在Certificate[证明书]中填写公司的相关信息。

      6)Ok之后在对应目录生成.jks文件(需保存好,升级的时候需要用到)

    5.Next之后,选择Build Variants中的 release  在选择 V1(Jar Signature),点击Finith就打包完成了。

    升级应用 重新打包

    1)修改版本号。

    android->app->src->main->AndroidManifest.xml中的 android:versionCode="2" android:versionName="1.0.2"

    2)修改pubspec.yaml中的 version版本号,前面就是versionName+versionCode。

    3)打包按第一次的设置依次执行就可以了

  • 相关阅读:
    POST、GET请求中文参数乱码问题
    表的复制——sql语句
    mysql之limit m,n
    nullpointerxception——处理思路
    public-private-protected-默认缺省 的区别
    final关键字的作用
    使用注解来构造IOC容器
    成功的背后!(给所有IT人)
    jQuery对象复制
    键盘录入, if语句
  • 原文地址:https://www.cnblogs.com/yiweiyihang/p/11974545.html
Copyright © 2011-2022 走看看