2017-05-23 20 views
0

私はAS 3.0で新しいネットワークプロファイラを使用しようとしています。Androidスタジオ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) 

、すべてが正常に動作します。

+0

おそらくあなたの最善の解決策はhttps://source.android.com/source/report-bugsです –

答えて

1

[実行] - > [設定の編集 - >プロファイリング]の順に選択し、[高度なプロファイリングを有効にする]を無効にします。この機能はAPIでは使用できません< = 19

関連する問題