【问题标题】:java lang Verify Error making request on androidjava lang 验证在android上发出请求时出错
【发布时间】:2015-09-19 03:19:14
【问题描述】:

我正在尝试使用retrofit 发出请求,signpost 进行身份验证,retrofit-signpost 连接两者,但我在请求:

java.lang.VerifyError: com/squareup/okhttp/internal/http/HttpConnection$AbstractSource

知道为什么会这样吗?

编辑: Logcat 错误日志:

07-02 09:15:30.626 28584-29830/com.example E/dalvikvm﹕ Could not find class 'okio.ForwardingTimeout', referenced from method com.squareup.okhttp.internal.http.HttpConnection$AbstractSource.<init>

【问题讨论】:

  • logcat 输出中应该有更多细节;如果是这样,请将其包含在您的问题中。
  • @fadden there.. 添加了我得到的唯一错误日志行。
  • @fadden 我想我找到了一些东西.. ForwardingTimeout 类不在我得到的包中。

标签: java android retrofit signpost


【解决方案1】:

原来我使用的是过时版本的 okio,它不包含所需的类。刚刚从square/okio's github site 下载了最新的,它工作了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-04
    • 2021-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多