realm-java: Crash while Creating Realm instance "Caused by java.lang.VerifyError"
Goal
I am seeing verify error while creating Realm Instance. I am only seeing this in crashlytics and still don’t know how to reproduce it.
Expected Results
I should not crash and should return a valid realm instance
Actual Results
Caused by java.lang.VerifyError: io/realm/DbLocationRealmProxy at io.realm.DefaultRealmModuleMediator.validateTable(DefaultRealmModuleMediator.java:53) at io.realm.Realm.initializeRealm(Realm.java:315) at io.realm.Realm.createAndValidate(Realm.java:283) at io.realm.Realm.createInstance(Realm.java:248) at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:114) at io.realm.Realm.getInstance(Realm.java:213)
Steps & Code to Reproduce
I have not been able to reproduce it but I am seeing this crashlytics. Note: I have not change the model lately
Code Sample
// this is initialization code
Realm.getInstance(new RealmConfiguration.Builder(appContext)
.deleteRealmIfMigrationNeeded()
.build());
Version of Realm and tooling
Realm version(s): “io.realm:realm-gradle-plugin:0.88.2”
Android Studio version: 2.1. and 2.2 preview
Which Android version and device: This is mostly crashing on HUAWEI phones (97%) using Android os 4.2.1 (97%)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (9 by maintainers)
@Zhuinden @cmelchior Thanks, I just added line
MultiDex.install(this);
in My Application and now its working.Thanks for the response. We fixed the issue, it was a multidex issue.