问题
I am trying to capture apis triggered from native app and website through Charles proxy / Fiddler , But I am not able to see any api there.
I have set manual proxy as well.
I am able to see apis for Android 8 and below . But not working for Android 9 .
In Android 9 , I could the screens getting loaded completely , but still I am not able to see the apis in any monitor.
回答1:
Add android:usesCleartextTraffic="true"
in AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your pckag">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
</manifest>
来源:https://stackoverflow.com/questions/54451203/android-9-pie-not-able-to-capture-any-api-native-web-through-network-mon