I’m encountering an issue with Flutter release version of my app on Android/iOS. The app seems get stuck indefinitely on splash when opened after killing the app, and I’m not sure what might be causing it.
Details:
Problem: When I try to install a release version of my Flutter app using flutter run –release or the process gets stuck at some point and does not proceed further. There is no error message or indication of what might be causing the issue.
Environment: I’m using Flutter version 3.19.5 and Dart version 3.3.3. My development environment is VS Code.
Steps Taken: I’ve tried various solutions such as cleaning the build folder (flutter clean), upgrading Flutter and Dart to the latest versions, and checking for any errors in the code or dependencies. However, none of these steps have resolved the issue.
Observations: Interestingly, this issue only occurs with release builds. Debug and Profile builds work fine, and the app runs without any issues in debug mode.
Additional Information:
I’ve checked the logs and there are no error messages or warnings that indicate what might be causing the build to get stuck.
I’ve also tried building the app on different machines, but the issue persists.
- I have tried with FVM by shifting between diff flutter versions
- removed the existing navigation flow i.e Splash->Login||Dashboard into Login directly.
- debug application doesn’t help as the Ui is stuck at the very beginning i.e Green Blank Page! whatever the starting Page/Ui is. please note green is the accent color on ContainerWidget as background color.
Request: I would appreciate any insights or suggestions on how to troubleshoot and resolve this issue. If anyone has encountered a similar problem or has any ideas on what might be causing it, please share your thoughts. Thank you in advance for your help
I have added project configs/libs dettails below.
version: 1.0.4+5
environment:
sdk: '>=3.0.1 <4.0.0'
dependencies:
cached_network_image: ^3.2.3
cloud_firestore: ^4.7.1
connectivity_plus: ^3.0.2
country_picker: ^2.0.19
cupertino_icons: ^1.0.2
dio: ^4.0.6
equatable: ^2.0.5
firebase_auth: ^4.4.0
firebase_core: ^2.9.0
firebase_database: ^10.1.0
firebase_messaging: ^14.6.1
flutter:
sdk: flutter
flutter_bloc: ^8.1.1
flutter_image_compress: ^1.1.3
flutter_local_notifications: ^14.1.0
flutter_localizations:
sdk: flutter
flutter_polyline_points: ^1.0.0
flutter_rating_bar: ^4.0.1
flutter_svg: ^1.1.6
geolocator: ^9.0.2
geolocator_android: 4.5.5 # this wasnt added previously
get: ^4.6.5
get_storage: ^2.0.3
google_maps_flutter: ^2.2.5
image_picker: ^0.8.6
in_app_update: ^4.0.1
intl: 0.18.1
location: ^5.0.3
mapbox_search: ^3.0.1+2
package_info_plus: ^3.1.2
path_provider: ^2.0.11
pinput: ^2.2.21
reactive_forms: ^14.1.0
share_plus: ^6.3.0
table_calendar: ^3.0.8
url_launcher: ^6.1.10
uuid: ^4.1.0
video_compress: 3.1.1
video_thumbnail: ^0.5.3
audioplayers: ^6.0.0
firebase_app_check: ^0.2.2+2
flutter --version
Flutter 3.19.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 300451adae (7 weeks ago) • 2024-03-27 21:54:07 -0500
Engine • revision e76c956498
Tools • Dart 3.3.3 • DevTools 2.31.1
already solution i checked online
link
link
link
and so on but none helped.