You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_android.SharedPreferencesApi.getAll"., null, null)
Here is the related code:
staticFuture<void> initEasyLocation() async {
final preferences =awaitSharedPreferences.getInstance();
Given that this is only affecting release Android builds, it feels like an R8 issue. It may be that the analysis is incorrectly determining that the legacy plugin class is unreachable and removing it.
I can sort this out since I use this code here in my build.gradle:
When I run my app with shared_preferences 2.2.3 and 2.3.2.
I get with this code:
The exception:
Here is the related code:
The might be related issue flutter/flutter#153075 mentions:
I can sort this out since I use this code here in my
build.gradle
:If this package is still maintained I would like to get some help to fix this issue.
The text was updated successfully, but these errors were encountered: