Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moshi problem #35

Open
kingsleyh opened this issue Apr 21, 2022 · 0 comments
Open

Moshi problem #35

kingsleyh opened this issue Apr 21, 2022 · 0 comments

Comments

@kingsleyh
Copy link

Hey

having a moshi issue

in my build.gradle I was already using this:

    // Kotlin KSP support
    id("com.google.devtools.ksp") version "1.6.20-1.0.4"

    // Json
    implementation("com.squareup.moshi:moshi:1.13.0")
    implementation("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.6.20-1.0.4")
    ksp("com.squareup.moshi:moshi-kotlin-codegen:1.13.0")

    // IPFS
    implementation("com.github.ligi:ipfs-api-kotlin:0.15")

Any idea how to solve this now I tried to add ipfs-api-kotlin?

 val multiHash = LocalIPFS().add.string("hello").Hash
  println(multiHash)
Cannot serialize Kotlin type io.ipfs.kotlin.model.NamedHash. Reflective serialization of Kotlin classes without using kotlin-reflect has undefined and unexpected behavior. Please use KotlinJsonAdapterFactory from the moshi-kotlin artifact or use code gen from the moshi-kotlin-codegen artifact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant