Android: Volley NoConnectionError

前端 未结 4 1213
不知归路
不知归路 2021-01-06 06:48

I\'m trying to connect to a REST-Server (which I created with Spark) via Android. I can send POST-Requests with POSTMAN (Chrome Addon) and get what I want, but when I try to

4条回答
  •  旧巷少年郎
    2021-01-06 06:49

    Android emulator uses 10.0.2.2 as a host loopback interface. Use it instead of 127.0.0.1 which is emulator itself.

提交回复
热议问题