How to build release Flutter project using Android Studio

Issue

I cannot build my project using Android Studio. I create project using console, then edit at VSCode. Now I open it at Android Studio and I cannot build release. Why this command Build bundles (green arrow) is not available?
enter image description here

Solution

Flutter project consist of subprojects:

  • /MyProject
    • /iOS – (iOS subproject)
    • /android – (android subproject)

When I open project "MyProject" I see:
enter image description here

But when I open android submodule/subproject "MyProject/android" I see another options under "Build":

enter image description here

So solution is:
If You want build Android package for Google Play store, You must open in IDE Android submodule, for example solder /MyProject/android

Case with Xcode, iOS and AppStore package looks similar – it is important to open iOS submodule, not whole MyProject.

Answered By – sosnus

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published