android - Realm 0.89 causes UnsatisfiedLinkError -


since upgrading realm 0.83.1 0.85 or 0.89, i'm unable run app. i'm stuck in 0.83.1 version. i'm getting weird link error when run on device. i'm trying encrypt database, it's supported in 0.85 or higher. appreciated!

here logcat output: caused by: java.lang.unsatisfiedlinkerror: no implementation found java.lang.string io.realm.internal.util.nativegettableprefix() (tried java_io_realm_internal_util_nativegettableprefix , java_io_realm_internal_util_nativegettableprefix__) @ io.realm.internal.util.nativegettableprefix(native method) @ io.realm.internal.util.gettableprefix(util.java:47) @ io.realm.internal.table.(table.java:38) @ io.realm.realmschema.(realmschema.java:40) @ io.realm.baserealm.(baserealm.java:78) @ io.realm.realm.(realm.java:138) @ io.realm.realm.createandvalidate(realm.java:269) @ io.realm.realm.createinstance(realm.java:249) @ io.realm.realmcache.createrealmorgetfromcache(realmcache.java:114) @ io.realm.realm.getdefaultinstance(realm.java:195)

i tried creating empty project , seems work fine, doesn't work on real project. suspect issue multi-dex, ran on phone android m , failed same way.

0.88.0 has changed way of adding realm dependency. instead of:

  • build.gradle (app level)

.

 dependencies {      compile 'io.realm:realm-android:0.87.4'  } 

you have do:

  • build.gradle (app level)

.

apply-plugin: 'realm-android' 
  • build.gradle (project level)

.

buildscript {     dependencies {          classpath 'io.realm:realm-gradle-plugin:0.89.0'     } } 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -