Fast-android-networking: Network security policy with Android P

Created on 29 Sep 2018  路  3Comments  路  Source: amitshekhariitbhu/Fast-Android-Networking

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?

Most helpful comment

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

<network-security-config> <base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> </trust-anchors> </base-config> </network-security-config>

and its working

All 3 comments

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

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

<network-security-config> <base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> </trust-anchors> </base-config> </network-security-config>

and its working

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ali-Khazaee picture Ali-Khazaee  路  5Comments

SunryTeang picture SunryTeang  路  4Comments

hiteshrawat picture hiteshrawat  路  10Comments

amervelic picture amervelic  路  3Comments

MahdiPishguy picture MahdiPishguy  路  5Comments