I updated my Flutter app to compile with Google Plays 16KB page size policy. I have changed several packages versions. Now I am getting an Platform exception error and app is stuck on splash.
The error I am getting is this:
E/flutter (32618): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_android.SharedPreferencesApi.getAll"., null, null)
After this error nothing happens. I have tried changing versions of the shared_preferences package and its dependencies but its not working. I have also changed gradle version, ndk etc.
Now I am using this versions:
minSdk = 24
compileSdk = 35
targetSdk = 35
Gradle 8.13
Kotlin 2.0.21
Groovy 3.0.22
Flutter 3.29.0
Dart 3.7.0
shared_preferences: ^2.3.2
-
1Did you see github.com/flutter/flutter/issues/153075?Frank van Puffelen– Frank van Puffelen2025年10月29日 16:22:23 +00:00Commented Oct 29, 2025 at 16:22