androidflutterdartrelease-apk

Flutter build apk on release mode cannot generate updated version


I had run this flutter build apk to release my App. Now I had built version 2 of that.

Now, I want to release my version 2 App. So, I run flutter build apk again. I get the released apk but It is still version 1 released apk. I deleted the released apk and tried again but still got version 1 released apk.

I tried this too but It is also giving me Version 1 apk

While building version 2 in debug mode, everything works fine.

Here is the Github Link to that App: https://github.com/nitishk72/Flutter-Github-API


Solution

  • I think you need

    flutter clean
    

    (I'd consider it a bug that this is necessary, but I'm encountering it as well)

    and

    flutter build apk --release