isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
4.01k stars 398 forks source link

Could not initialize IsarCore library for processor architecture "android_ia32" #1238

Open rezadevelopers2 opened 1 year ago

rezadevelopers2 commented 1 year ago

Could not initialize IsarCore library for processor architecture "android_ia32". If you create a Flutter app, make sure to add isar_flutter_libs to your dependencies. For Dart-only apps or unit tests, make sure to place the correct Isar binary in the correct directory. IsarNotReadyError: Unsupported processor architecture. X86 Android emulators are not supported. Please use an x86_64 emulator instead. All physical Android devices are supported including 32bit ARM.

init

WidgetsFlutterBinding.ensureInitialized(); final dir = await getApplicationDocumentsDirectory(); Hive.defaultDirectory = dir.path;

add model

final box = Hive.box(name: "qrDb"); box.put(modelDB.id.toString(), modelDB)

dependencies hive: ^4.0.0-dev.2 isar_flutter_libs: ^4.0.0-dev.14

[√] Flutter (Channel stable, 3.13.1, on Microsoft Windows [Version 10.0.19045.3324], locale en-US) • Flutter version 3.13.1 on channel stable at C:\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision e1e47221e8 (12 days ago), 2023-08-22 21:43:18 -0700 • Engine revision b20183e040 • Dart version 3.1.0 • DevTools version 2.25.0

AlexanderMendivil commented 3 months ago

I have the same problem as you, did you find a way to make that work?

yohirusyo commented 3 months ago

I have the same problem as you, did you find a way to make that work?

Hi, did you fixed it?

AlexanderMendivil commented 3 months ago

@yohirusyo The only solution I found is that I need to use a x86_64 architecture, I just download a newer version of an emulator.