如何使用 Android Studio 2.1 和 Charles 代理捕获 http 流量?

How to capture http traffic with Android Studio 2.1 and Charles proxy?

我已经将 Android Studio IDE 更新到最新版本 2.1,我想使用 Chalres 代理从 Android 模拟器捕获 https 流量。

看起来模拟器随着 Android Studio 2.1 发生了变化,我找不到使用 charles 代理捕获 http 流量的方法。

在 Stack Overflow 中有一些类似的问题,但这些问题出现在较早的 Android Studio 版本中,我无法在其中找到解决我的问题的答案。

关注this instruction to use Charles proxy with Android API 23 emulator devices. For me it works for http. But for https traffic I get only unresolved IP addresses within the Charles session. Does anyone know how to support DNS with Charles Proxy, Android avd and https? I've made up a new post我的配置。