Tag Archives: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics

[Solved] okhttp3 Error: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics

Okhttp3 upload, error report, prompt:

java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics

Okhttp version: okhttp-3.0 0.jar, okio-2.0.0.jar

The local test is normal. This error is reported after the relevant files are updated to the server.

Found ideas online: https://github.com/square/okhttp/issues/5299

The local machine is normal because the complete dependency of okhttp is obtained through Maven. When it is placed on the server, only okhttp and okio packages are placed, and kotlin stdlib is missing.

So from this machine The jar package of kotlin is found in the M2 Directory: kotlin-stdlib-1.2 60.jar,

Put the jar package on the server, restart and solve the problem