Skycoder42 / libsodium_dart_bindings

Dart bindings for libsodium, supporting both the VM and JS without flutter dependencies.
https://pub.dev/packages/sodium
BSD 3-Clause "New" or "Revised" License
31 stars 9 forks source link

WARNING: The embedded libsodium is outdated! Expected 1.0.20, but was 1.0.19 #133

Open pt-rick opened 1 week ago

pt-rick commented 1 week ago

This warning is given when running my application in Android Studio while using sodium_libs versions 3.n.n. Correspondently, the app crypto exchange fails. The app successfully runs with version 2.2.1+6.

I/flutter ( 2610): WARNING: The embedded libsodium is outdated! Expected 1.0.20, but was 1.0.19}. Please file an issue at https://github.com/Skycoder42/libsodium_dart_bindings/issues.

Here's my Flutter doctor output: [√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.19045.5131], locale en-US) • Flutter version 3.24.3 on channel stable at C:\Users\Rick\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 2663184aa7 (2 months ago), 2024-09-11 16:27:48 -0500 • Engine revision 36335019a8 • Dart version 3.5.3 • DevTools version 2.37.3

Skycoder42 commented 6 days ago

Okay, this is interesting, as for android the library comes bundled with the precompiled binaries. This is validate here https://github.com/Skycoder42/libsodium_dart_bindings/blob/main/packages/sodium/test/integration/cases/sodium_test_case.dart#L17 and here https://github.com/Skycoder42/libsodium_dart_bindings/blob/main/packages/sodium_libs/example/integration_test/app_test.dart#L65, so I think there must be something wrong on your system - propably something with caches.

My recommendation - clear them all:

After that, run pub get again and rebuild your project. Hopefully the update error message will be gone.