Open openl4m4 opened 1 month ago
I guess you are trying to run it on an Android device? The objectbox-android-objectbrowser
version looks good. Maybe a caching issue? Did you try flutter clean
and then running again?
Well, thanks for the confirmation.
I tried a flutter clean but it's the same problem at the end. A rollback to these packages values works well :
dependencies:
flutter:
sdk: flutter
objectbox: ^2.3.1
objectbox_flutter_libs: any
intl: any
path_provider: ^2.0.10
path: ^1.8.3
image_picker: ^1.0.4
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
google_fonts: ^6.1.0
collection: ^1.18.0
dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^2.0.0
objectbox_generator: any
Tried to reproduce but not having any issues in VS Code and running on Android. Maybe manually delete the Flutter/Dart build folders?
In any case, you can try with one of the examples to check if it's an issue with your project. (Make sure to comment out the dependency_overrides
in the pubspec though).
I have the same issue.
Changing dependencies at andoid\app\build.gradle solved my problem.
dependencies {
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.android.material:material:1.6.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "io.objectbox:objectbox-android:3.8.0"
debugImplementation("io.objectbox:objectbox-android-objectbrowser:3.8.0")
}
@bahadirarslan Thanks, but the original poster already has the correct version of objectbox-android-objectbrowser
added.
@bahadirarslan Thanks, but the original poster already has the correct version of
objectbox-android-objectbrowser
added.
You are right, sorry I didn't notice that.
Hello everyone,
I just upgraded Flutter & ObjectBox from 2.3.1 to 2.5.1 today and now I'm having issues launching the project. Here is the error I'm facing when doing a Flutter run in vscode:
Here's my pubspec.yaml file.
The output of my Flutter doctor:
I've checked the doc, many issues and other resources and added the dependencies & configuration part in my build.gradle:
I also got the new libobjectbox.so from the following script, did a search on my system for the lib & put it inside my project:
Unfortunately, I still have the same issue. Do you spot any issues that I could fix in my conf or elsewhere?
Thanks a lot.
Kieran