amitshekhariitbhu / Fast-Android-Networking

🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
https://outcomeschool.com
Apache License 2.0
5.67k stars 955 forks source link

Network security policy with Android P #359

Open MxNINJA opened 5 years ago

MxNINJA commented 5 years ago

When upgrade the project to Android P, i am testing on my machine and i don't have HTTPS config when trying to invoke request i got this error

com.androidnetworking.error.ANError: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.1.164 not permitted by network security policy

I walk through this article Network security configuration and its not working.

Any ideas?

anajar commented 5 years ago

@amitshekhariitbhu i have face the same issue please any help or idea @MxNINJA same d u find any solutions

MxNINJA commented 5 years ago

will, i update the network-security-config file with this:

`

`

and its working

anoopvt commented 4 years ago

@MxNINJA thanks... it's working..