Closed amarnathbaitha closed 4 years ago
Please tell me the solution for this problem I got stuck in the same issue.
Hey hardik, this helped me https://stackoverflow.com/a/52598806
Hello HardikSharma
Same error i am facing
I have added network_config file in res/xml folder with added this
Please add this line in manifest in application:
android:usesCleartextTraffic="true"
On Mon, 11 Nov 2019, 16:56 naveenAndroid, notifications@github.com wrote:
Hello HardikSharma Same error i am facing I have added network_config file in res/xml folder with added this ### http://xyz Ip address add android:networkSecurityConfig="@xml/network_security_config" line in manifest but i stuck here
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/payu-intrepos/payumoney-new-sample-app/issues/38?email_source=notifications&email_token=AMVQKF5RD6UMD3DOSRY4ILTQTE6PZA5CNFSM4IHQK4P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWQSYA#issuecomment-552405344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVQKF2EGKND64YUVTVWX3TQTE6PZANCNFSM4IHQK4PQ .
yes its already added <application android:name=".BaseApplication" android:hardwareAccelerated="false" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:largeHeap="true" android:networkSecurityConfig="@xml/network_security_config" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true" tools:ignore="GoogleAppIndexingWarning" tools:replace="usesCleartextTraffic">
but same error
Show me your network file
On Mon, 11 Nov 2019, 17:12 naveenAndroid, notifications@github.com wrote:
yes its already added <application android:name=".BaseApplication" android:hardwareAccelerated="false" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:largeHeap="true" android:networkSecurityConfig="@xml/network_security_config" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true" tools:ignore="GoogleAppIndexingWarning" tools:replace="usesCleartextTraffic">
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/payu-intrepos/payumoney-new-sample-app/issues/38?email_source=notifications&email_token=AMVQKF5JFAW7ABMDCUNRD6DQTFALFA5CNFSM4IHQK4P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWR3DY#issuecomment-552410511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVQKF4OZVGYP6FHJA74MILQTFALFANCNFSM4IHQK4PQ .
...........under network-security-config
Closing this due to no activity
It is not working on Android 9 version.
I Added the below line of code now its working fine with Android 9 version.