flutter build apk create old version app

前端 未结 4 1484
南方客
南方客 2021-01-31 16:21

I am a new flutter programmer and i am trying to build my release app in flutter and when i run

flutter run

everything work fine in debug and te

相关标签:
4条回答
  • 2021-01-31 16:49

    If flutter clean and flutter build apk also generates apk with old version code in your pubspec.yaml change the version like this version: 1.0.2+2 Before + it is your version name and after + sign it is your version code

    NOTE: Your new version number should be in the place of 2. Or you can use different format such as 1.2+2

    0 讨论(0)
  • 2021-01-31 16:50

    To all the beginners If you wish to release an apk of a flutter app just do: flutter run --release (and make sure to connect your device to a phone) steps to ensure your phone is connected: 1. enable usb debugging mode in your phone 2.click on version number of your phone in system settings to enter into developer mode 3. change the phone mode to transferring file mode

    After you run the command go to build->apps->output->apk

    0 讨论(0)
  • 2021-01-31 17:10

    the solution is easy.
    just run flutter clean and run flutter build apk after that and it generate update app apk.
    if you want to install it directly just run flutter install after the build command.

    0 讨论(0)
  • 2021-01-31 17:14

    Can be done easily by Android Studio

    0 讨论(0)
提交回复
热议问题