Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could provide a version adapted for Android 15 with a 16KB size limit? #1801

Open
wyqlxf opened this issue Oct 10, 2024 · 1 comment
Open

Comments

@wyqlxf
Copy link

wyqlxf commented Oct 10, 2024

What happened?

https://developer.android.com/guide/practices/page-sizes?hl=zh-cn

Can you provide a version adapted to Android 15 16KB?

Repro steps

  1. dependencies:
    realm: ^20.0.0
  2. flutter pub run realm generate
  3. Running in Android 15 emulator 16kb environment

Version

20.0.0

What Atlas Services are you using?

Local Database only

What type of application is this?

Dart standalone application

Client OS and version

Android15

Code snippets

No response

Stacktrace of the exception/crash you're getting

======== Exception caught by widgets library =======================================================
The following RealmException was thrown building Builder:
Cannot get app directory. Error: Realm error : Could not open librealm_dart.so. Tried:
- "librealm_dart.so"
Hint: Did you forget to add a dependency on the realm package?

The relevant error-causing widget was: 
  MaterialApp MaterialApp:file:///Users/wyqlxf/Desktop/FlutterProjects/flutter_so_demo/lib/main.dart:16:12
When the exception was thrown, this was the stack: 
#0      RealmCore.getAppDirectory (package:realm_dart/src/handles/native/realm_core.dart:107:7)
#1      Configuration.defaultStoragePath (package:realm_dart/src/configuration.dart:86:22)
#2      Configuration.defaultRealmPath (package:realm_dart/src/configuration.dart:93:47)
#3      Configuration.defaultRealmPath (package:realm_dart/src/configuration.dart)
#4      Configuration._defaultPath (package:realm_dart/src/configuration.dart:107:44)
#5      new Configuration._ (package:realm_dart/src/configuration.dart:103:50)
#6      new LocalConfiguration._ (package:realm_dart/src/configuration.dart:257:14)
#7      Configuration.local (package:realm_dart/src/configuration.dart:152:26)
#8      _MyHomePageState.write (package:flutter_so_demo/main.dart:139:32)
#9      _MyHomePageState.initState (package:flutter_so_demo/main.dart:66:5)
#10     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5618:55)
#11     ComponentElement.mount (package:flutter/src/widgets/framework.dart:5463:5)
...     Normal element mounting (228 frames)
#239    Element.inflateWidget (package:flutter/src/widgets/framework.dart:4340:16)
#240    MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6904:36)
#241    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6916:32)
...     Normal element mounting (489 frames)
#730    Element.inflateWidget (package:flutter/src/widgets/framework.dart:4340:16)
#731    Element.updateChild (package:flutter/src/widgets/framework.dart:3849:18)
#732    _RawViewElement._updateChild (package:flutter/src/widgets/view.dart:291:16)
#733    _RawViewElement.mount (package:flutter/src/widgets/view.dart:314:5)
...     Normal element mounting (7 frames)
#740    Element.inflateWidget (package:flutter/src/widgets/framework.dart:4340:16)
#741    Element.updateChild (package:flutter/src/widgets/framework.dart:3849:18)
#742    RootElement._rebuild (package:flutter/src/widgets/binding.dart:1581:16)
#743    RootElement.mount (package:flutter/src/widgets/binding.dart:1550:5)
#744    RootWidget.attach.<anonymous closure> (package:flutter/src/widgets/binding.dart:1503:18)
#745    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2845:19)
#746    RootWidget.attach (package:flutter/src/widgets/binding.dart:1502:13)
#747    WidgetsBinding.attachToBuildOwner (package:flutter/src/widgets/binding.dart:1239:27)
#748    WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:1221:5)
#749    WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:1207:7)
#753    _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
(elided 3 frames from class _Timer and dart:async-patch)
====================================================================================================

Relevant log output

No response

Copy link

sync-by-unito bot commented Oct 10, 2024

➤ PM Bot commented:

Jira ticket: RDART-1104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant