Skip to content Skip to sidebar Skip to footer

Noclassdeffounderror: Failed Resolution Of: Lio/realm/internal/linkview

I am using Realm. I installed Stetho-Realm to view realm data. This is what i have done. buildscript { ... repositories { google() jcenter() ...

Solution 1:

Stetho-Realm is unmaintained and doesn't support Realm version above 3.7.1

However there is a community fork: https://github.com/wickedev/stetho-realm

repositories {
    maven { url 'https://github.com/WickeDev/stetho-realm/raw/master/maven-repo' }
}

dependencies {
    implementation 'com.uphyca:stetho_realm:2.3.0'
}
val realmInspector = RealmInspectorModulesProvider.builder(this)
            .withDeleteIfMigrationNeeded(true)
            .build()

Stetho.initialize(Stetho.newInitializerBuilder(this)
            .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
            .enableWebKitInspector(realmInspector)
            .build())

Solution 2:

I prefer using Realm Studio over stetho which is available for both Windows and Mac. You can simple pull the realm db file using adb command

adb pull /[path to local storage]/android/data//files/[realm file] [path of folder on your pc]

Post a Comment for "Noclassdeffounderror: Failed Resolution Of: Lio/realm/internal/linkview"