Android Studio Network Profiler cannot see JSON response body

I upgraded to Android Studio 3.0 rc1. I am trying to use Network Profiler. I do not see JSON in the response body

enter image description here

An image is displayed on the documentation page in the preview section of the response. Can Android Studio Network Profiler show JSON? Or is it just for previewing images? Any help would be great.

+4
source share
1 answer

I ran into the same problem and tracked it down to my proguard configuration. It looks like the profiler is using reflection to invoke some of the okhttp3 methods, but they have been separated by proguard.

Adding the following line to my proguard rules solved the problem for me:

-keep class okhttp3.Headers { *; }
0
source

Source: https://habr.com/ru/post/1687591/


All Articles