2

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
Frank van Puffelen
604k85 gold badges896 silver badges869 bronze badges
asked Oct 29, 2025 at 14:07
1

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.