Android Studio未显示网络检查工具

5

我看到了这份文档https://developer.android.com/studio/debug/network-profiler

文档中说我们可以通过网络检查器来检查网络请求和响应。但是,我的Android Studio没有显示此选项卡。(我尝试过invalidate caches/restart, 但没有成功)

当前的Android Studio版本为:Arctic Fox, 2020.3.1 patch 4

enter image description here

4个回答

5

按照以下步骤进行操作: 在底部找到分析器 -> 开始新的分析会话(确保在此期间您的应用程序正在运行) -> 您将看到写着网络分析器已移动 -> 点击网络检查器 图片


5
仍然没有展示任何东西。 - Matteo

1

我遇到了同样的问题并解决了它。

AndroidManifest.xml

<manifest>元素中删除android:sharedUserId属性。

我为截图插件添加了android:sharedUserId以保存截图。 该插件仅适用于androidTest/AndroidManifest.xml。 不需要添加到全局的AndroidManifest.xml中。


SharedUserId在我的情况下也被证明是罪魁祸首。根据文档,它的使用也被强烈不建议。 https://developer.android.com/guide/topics/manifest/manifest-element - Abdul Rehman Yawar Khan

0

0
如果在工作室中没有出现AppInspection,您需要选择它。

enter image description here

然后在底部选中AppInspection,使窗口出现。

enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接