java.lang.NoClassDefFoundError: kotlin/TypeCastException

When testdemo run the uploaded file error:

java.lang.NoClassDefFoundError: kotlin/TypeCastException

My first reaction is that there is no guide jar package, then I have directed the seven cattle clouds documentation of all the jar packages

I am puzzled, Baidu for a long time did not find friends with similar encounter such a situation, whether it was a man named do not kotlin jar package did not lead, no one gave me answers. Later, it can not find kotlin jar package, you had a question in front of the existing version of this package of six jar, try holding the psychological, it will depend on a change in a jar package version, when switched to okio I found the reason:

Before I used okio is:

That is 2.2.2 version, this version does not know is there is no TypeCastException thing, and it is poisonous, but also because it is hung on the outside, and certainly the first time I was thinking about downloading this version, the result is not, you point that "( 35) "go, there are multiple versions, 2.X is the second generation, there is also a generation version 1.X, this is what we need, so I replaced the 1.17.3 version, the problem is solved

Published 20 original articles · won praise 8 · views 50000 +

Guess you like

Origin blog.csdn.net/a26637896/article/details/86699807