1
Je travaille une application d'étincelle (langue> scala),okhttp3 ResponseBody à la chaîne Question
et en utilisant okhttp3 3.6.0 ver.
Une erreur se produit lors de l'appel de la méthode ci-dessous.
val client = new OkHttpClient()
....
val response = client.newCall(request).execute()
response.body().string()
Exception:
Exception in thread "main" java.lang.NoSuchMethodError: okio.BufferedSource.rangeEquals(JLokio/ByteString;)Z
at okhttp3.internal.Util.bomAwareCharset(Util.java:412)
at okhttp3.ResponseBody.string(ResponseBody.java:173)
s'il vous plaît aidez-moi. ». (
ps
scala version : 2.10.6
spark version : 1.6.3
okhttp version : 3.6.0