Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

isar community fails on 16 KB page size Android images (even with legacy packaging enabled) #120

@JakobLichterfeld

Description

@JakobLichterfeld

Steps to Reproduce

Using a Android Emulator with an image of Type 16 KB Page Size Google APIs PlayStore and Using legacy packaging as suggested by Google results in the following exception:

IsarError (IsarError: Could not initialize IsarCore library for processor architecture "android_arm64". If you create a Flutter app, make sure to add isar_flutter_libs to your dependencies.
Invalid argument(s): Failed to load dynamic library 'libisar.so': dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/app/<redacted>/lib/arm64/libisar.so" (new hash type from the future?))

without legacy packaging the app fails to install on those images.

(Other images without 16KB page size run fine)

Code sample

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:isar/isar.dart';
import 'package:path_provider/path_provider.dart';

void main() {
  final dir = await getApplicationDocumentsDirectory();
  final isar = await Isar.open(
    [UserSchema],
    directory: dir.path,
  );

  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: Text('Hello World!'),
        ),
      ),
    );
  }
}

Details

  • Platform: Android Emulator with an image of Type 16 KB Page Size Google APIs PlayStore
  • Flutter version: 3.27.3
  • Isar-community version: 3.1.8

  • I searched for similar issues already
  • I filled the details section with the exact device model and version
  • I am able to provide a reproducible example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions