Moshi throwing Exception "Unable to create converter" with minify enabled

Viewed 220

Moshi is throwing this exception:

Unable to create converter for com.xxxx.app.xxxx.xxxx.main.moshi.SingleData<ActorEntity>

But only in debug environment !!

In release environment is all working fine.

How is that possible?

FYI: I am currently updating my Moshi from version 1.3 to 1.9.3!

1 Answers

I found my issue, it was because I have to set:

buildTypes {
    debug {
        minifyEnabled true // <----- That was missing
    }

    release {
        minifyEnabled true
    }
}

I am new on Android so I have no idea what ProGuard was but you can read more: her or her or her

Related