kodein_db = "0.4.0-beta" ```implementation("org.ko...
# android
y
kodein_db = "0.4.0-beta"
Copy code
implementation("org.kodein.db:kodein-db-jvm:$kodein_db")
implementation("org.kodein.db:kodein-db-serializer-kotlinx:$kodein_db")
implementation("org.kodein.db:kodein-db-serializer-kryo-jvm:$kodein_db")
led to
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/kodein/db/leveldb/jvm/LevelDBJvm
Copy code
implementation("org.kodein.db:kodein-db:$kodein_db")
implementation("org.kodein.db:kodein-db-jvm:$kodein_db")
implementation("org.kodein.db:kodein-db-serializer-kotlinx:$kodein_db")
implementation("org.kodein.db:kodein-db-serializer-kryo-jvm:$kodein_db")
led to
Duplicate class org.kodein.db.impl.AbstractDBFactory found in modules jetified-kodein-db-debug-runtime (org.kodein.db:kodein-db-android-debug:0.4.0-beta) and jetified-kodein-db-jvm-0.4.0-beta (org.kodein.db:kodein-db-jvm:0.4.0-beta)
for 99 classes
Copy code
implementation("org.kodein.db:kodein-db:$kodein_db")
implementation("org.kodein.db:kodein-db-serializer-kotlinx:$kodein_db")
implementation("org.kodein.db:kodein-db-serializer-kryo-jvm:$kodein_db")
led to
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/my.app.debug-PdUtRd44w96MN7OUXipZlg==/base.apk"],nativeLibraryDirectories=[/data/app/my.app.debug-PdUtRd44w96MN7OUXipZlg==/lib/arm64, /system/lib64, /system/vendor/lib64]]] couldn't find "libkodein-leveldb-jni.so"
what am I doing wrong? is the use of
kts
mandatory? I still have the
build.gradle
doc: https://docs.kodein.org/kodein-db/0.4/core/install.html
k
There's a #kodein channel as well FYI. Interesting that they use a JNI library now...
e
Since you only add/remove some implementations(“…”) statements, it should be ok to stay in
build.gradle.
For Kodein issues, you may need to open an issue in their repository..
y
thx
There's a #kodein channel as well FYI.
how can I figure out which channel my question relates to more???)))
k
Depends if your problem is related to Android more or Kodein more. The Kodein folks are pretty helpful and know their framework the best so for stuff like JNI issues, I'd ask them first.