Closed RealMoMo closed 1 year ago
I have the same problem after I copy the realm file by file system and replace the original one.
@RealMoMo the error you experience is Realm failing to open the file, it might be caused by different issues. We need more context about the error to be able to point to the issue.
Is this error something new, was it working before? If not what have you changed? Are you fiddling with the Realm file? Is it a multiprocess app? Do you use Instant apps?
@KimiChiu Please use the RealmConfiguration::assetFile
method If you like to load a DB from disk.
Closing due to inactivity. Please reopen if it is still an issue.
How frequently does the bug occur?
All the time
Description
Realm.getDefaultInstance() crash Is it caused by selinux?
Stacktrace & log output
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
"io.realm:realm-gradle-plugin:6.0.2"(10.11.0 aslo crash)
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android9.0
Build environment
Android Studio version: ... Android Build Tools version: ... Gradle version: ...