PlatformException when calling getApplicationDocumentsDirectory on Flutter/Android release builds
In an Android release build of our Flutter app, we call getApplicationDocumentsDirectory
in main.dart (after WidgetsFlutterBinding.ensureInitialized();
) in order to initialize Hive (3rd party library used for storage). This has resulted in a crash that only occurs in release builds.
PlatformException when calling getApplicationDocumentsDirectory on Flutter/Android release builds
In an Android release build of our Flutter app, we call getApplicationDocumentsDirectory
in main.dart (after WidgetsFlutterBinding.ensureInitialized();
) in order to initialize Hive (3rd party library used for storage). This has resulted in a crash that only occurs in release builds.