title: Network profiler on Android studio 3.0
body: <p>I've been trying to use the new network profiler in AS 3.0.</p>
  
  <p>My dependency stack:</p>
  
  <pre><code>retrofit 2.1.0
  okhttp 3.3.1
  </code></pre>
  
  <p>The problem is when I enable advanced profiling it fails with following error:</p>
  
  <blockquote>
  <pre><code>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)
  </code></pre>
  </blockquote>
  
  <p>When I disable the advanced profiling, everything works correctly.</p>