I had run this flutter build apk
to release my App. Now I had build verison 2 of that.
Now again I want to release my version 2 App.To get the release apk
I hope this can help someone. I ran into a problem that my release version does not works and there are no any error messages in logcat.
The problem turned out to be that I had FutureBuilder
in which i start Future
. By running flutter run
it works properly (snapshot.hasData
was true
), but in release version it was always false
. Of course, documentation of the FutureBuilder
says that hasData
should be false
in this case. But in fact in debug mode it has different behaviour.
P.S. Another possible problems: Now my app still not working, but this time i saw on logcat next error:
Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
Downgrading gradle plugin version from 7.* to 3.5.4 solves this issue.
classpath 'com.android.tools.build:gradle:3.5.4'