更新时间:2022-06-05 15:58:37
如果你使用模拟器运行你的应用程序的本地服务器。将本地 ip
标记为 10.0.2.2
,并且必须为您的应用授予互联网权限:
if you are using emulator to run your app for local server. mention the local ip
as 10.0.2.2
and have to give Internet permission into your app :
<uses-permission android:name="android.permission.INTERNET" />