【发布时间】:2017-10-23 10:40:18
【问题描述】:
我一直在尝试使用 AS 3.0 中的新网络分析器。
我的依赖栈:
retrofit 2.1.0
okhttp 3.3.1
问题是当我启用高级分析时它失败并出现以下错误:
Caused by: java.net.ProtocolException: cannot write request body after response has been read at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:255) at com.android.tools.profiler.support.network.HttpURLConnection$.getOutputStream(HttpURLConnection$.java:282) at org.acra.util.HttpRequest.send(HttpRequest.java:147) at org.acra.sender.HttpSender.send(HttpSender.java:235) at org.acra.sender.ReportDistributor.sendCrashReport(ReportDistributor.java:102) at org.acra.sender.ReportDistributor.distribute(ReportDistributor.java:70) at org.acra.sender.SenderService.onHandleIntent(SenderService.java:69) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.os.HandlerThread.run(HandlerThread.java:61)
当我禁用高级分析时,一切正常。
【问题讨论】:
-
可能你最好的解决方案是source.android.com/source/report-bugs
标签: android android-studio retrofit2 okhttp3