skip to Main Content

I get this exception at the startup of the app.
UnsupportedError (Unsupported operation: Loaded ObjectBox core dynamic library has unsupported version 0.18.1, expected ^0.19.0)

Flutter 3.15.0-15.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 0d074ced6c (3 hours ago) • 2023-09-21 10:24:15 -0700
Engine • revision 453411bcf3
Tools • Dart 3.2.0 (build 3.2.0-134.1.beta) • DevTools 2.27.0
sdk: '>=3.0.0 <4.0.0'

objectbox: ^2.1.0
objectbox_flutter_libs: ^2.1.0
objectbox_generator: ^2.1.0

I tried it on Windows and Linux and tried the following script like they say in their docs.

bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh)
In windows I copied the files to System32 and in Linux it installs the .so file globally but it does not work on either platform.

Edit: Same problem with the objectbox example projects.

2

Answers


  1. Why are you using beta version of Flutter SDK? My SDK version is 3.13.5, and tested with the objectbox versions that you mentioned, there is no any issue. If you do not have a necessary reason to use beta channel, you should use stable channel.

    Login or Signup to reply.
  2. La nueva versión de flutter no se encuentra en el canal estable o beta. Deberías cambiarlo.

    • beta

      flutter channel beta

    • estable

      flutter channel stable

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search