If your Flutter app stores its data in isar 3.1.0+1, nothing is visibly wrong. It builds, it ships, and the data opens every morning. Stalled is not the same as broken.
But Android now gives you a date, and the original Isar Android binary doesn't meet the rule behind it.
The rule
Google's page size guidance says apps that target Android 15 (API level 35) and higher must support 16 KB memory pages on 64-bit devices on Google Play. It also says that from February 1, 2027, app updates that don't support 16 KB pages can't be released.
The deadline doesn't stop your app from running. It stops you from shipping updates.
Why isar 3.1.0+1 is affected
Native libraries have a load alignment in their ELF headers (p_align on each PT_LOAD segment). To support 16 KB pages, it needs to be at least 0x4000. We read the published Android binaries:
| Binary | arm64-v8a | x86_64 |
|---|---|---|
isar_flutter_libs 3.1.0+1, libisar.so
|
0x1000 (4 KB) | 0x1000 (4 KB) |
isar_community_flutter_libs 3.3.2, libisar.so
|
0x4000 (16 KB) | 0x4000 (16 KB) |
isar_plus 1.3.9, libisar_plus_android_arm64.so
|
0x4000 (16 KB) | not checked |
The last stable Isar release, 3.1.0+1, came out on April 25, 2023. The 4.0 line has stayed at a dev prerelease (4.0.0-dev.14) since August 21, 2023. Upstream hasn't published a new build of that binary since 2023, so waiting for a fix isn't a plan.
Check your own APK, not just Isar
Isar may not be the only problem. Check every native library you ship:
unzip -o app-release.apk 'lib/*' -d apk_libs
for so in apk_libs/lib/*/*.so; do
echo "$so"
readelf -lW "$so" | grep LOAD
done
With -W, the last column of each LOAD line is the Align value. 0x1000 means 4 KB, 0x4000 means 16 KB. This tells you how a library was built, not how your app behaves on a real 16 KB device, so test on one before you release.
Three ways off original Isar
1. isar_community: the cheap fix
isar_community is the Isar v3 code under a new name. Its changelog is maintenance work, including 16 KB page support since 3.2.0-dev.1. For a shipped app this is the smallest change:
dependencies:
isar_community: ^3.3.2
isar_community_flutter_libs: ^3.3.2
dev_dependencies:
isar_community_generator: ^3.3.2
build_runner: any
// before
import 'package:isar/isar.dart';
// after
import 'package:isar_community/isar.dart';
You have to regenerate. The old .g.dart files fail to compile with:
Outdated generated code. Please re-run code generation using the latest generator.
After dart run build_runner build, our real Isar 3 file (links, backlinks, an embedded list, an enum) read back identical, and no data migration was needed.
The real cost is the toolchain. The old isar_generator held our project at analyzer 5.13.0. After the swap it moved to analyzer 10.2.0, so freezed, json_serializable and the other generators all upgrade at the same time. isar_community_generator 3.3.2 also needs Dart 3.9, whatever the runtime package says.
2. isar_plus: a different database with a familiar API
isar_plus is based on the Isar v4 architecture. It adds web support, SQLCipher encryption and string ids. It is not a newer v3: writeTxn becomes writeAsync, IsarLink and @Backlink are gone, and @enumerated becomes @enumValue.
It also cannot open a v3 file. In our test the attempt failed with Could not deserialize existing schema, and the file grew from 1 MB to 20 MB. Our data survived, but don't count on that. Moving to isar_plus means copying every record into a new database under a new name, after taking a backup.
3. drift: leaving on purpose
Drift is a typed layer over SQLite, with watched queries and schema migrations, and it runs on all six Flutter platforms. None of your Isar code carries over: collections become tables and links become foreign keys. It has the healthiest maintenance of the three, and for a shipped app racing February 2027 it is also the slowest route.
Which one, when
-
Shipped app, needs to keep shipping Android updates:
isar_communitynow. -
Shipped app with a long life ahead:
isar_communitynow,driftlater, on your own schedule. -
New app that wants Isar's object API plus web or encryption:
isar_plus, knowing it has one maintainer. -
New app with relational data:
driftfrom the start.
Whatever you pick, copy real .isar files off a test device first, open them with the new build, and compare every collection before you ship.
Further reading: we tested all three successors against a real Isar 3 file: Isar Alternative for Flutter: Community, Plus or Drift?
Have you checked the p_align of every .so in your release build yet? Did anything other than Isar turn up?
Top comments (0)