Closed 15239545925 closed 1 year ago
The Application initialization code is as follows: Realm.init(this); RealmConfiguration realmConfiguration = new RealmConfiguration.Builder() .name("scaleSys.realm") .allowQueriesOnUiThread(true) .allowWritesOnUiThread(true) .deleteRealmIfMigrationNeeded() .build(); Realm.setDefaultConfiguration(realmConfiguration);
realm = Realm.getDefaultInstance();
Hi @15239545925
That setup should work fine. Can you describe your setup in more detail? Are you reproducing this on a real device, in that case, which one? If it is on an emulator, which one and on which operating system?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
How frequently does the bug occur?
Always
Description
Call Realm.getDefaultInstance() on initialization; It will crash and error initialize if you comment it out and call Realm.getDefaultInstance() when using the database; Errors are also reported
Use version : classpath "io.realm:realm-gradle-plugin:10.10.0" classpath "io.realm:realm-gradle-plugin:10.0.1"
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
Recirculation step:Application open system permissions will crash, do not open system permissions can be used normally
Version
classpath "io.realm:realm-gradle-plugin:10.10.0" classpath "io.realm:realm-gradle-plugin:10.0.1"
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
AndroidStudio
Build environment
Android Studio version: ... Android Studio 4.2 Android Build Tools version: ... 31 Gradle version: ...6.1.1