4

之前使用 okhttp 拦截器,在 android studio 的“Android Monitor”部分打印了一个完整的 json 请求。

在此处输入图像描述

现在将 android studio 更新到 3.1 后,有“Android Profiler”选项代替“Android Monitor”来记录请求响应。以下是我使用“Android Profiler”所遵循的链接。

https://futurestud.io/tutorials/retrofit-2-analyze-network-traffic-with-android-studio-profiler

“Android Profiler”打印响应正文,但请求正文(在请求选项卡上)始终为空。

在此处输入图像描述

如何通过“Android Profiler”打印完整的 json 请求正文。谢谢

4

0 回答 0