0

Tell me how you can fix it?

AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />

<application
    ...
    android:networkSecurityConfig="@xml/network_security_config"
    android:usesCleartextTraffic="true"
    ...>
    <activity>
       ...
    </activity>
</application>

network_security_config.xml

<network_security_config>
    <base-config cleartextTrafficPermitted="true"/>
</network_security_config>
j.ss
  • 45
  • 2
  • 8
  • https://stackoverflow.com/questions/53984725/networksecurityconfig-no-network-security-config-specified-using-platform-defa/53984915#53984915 – Quick learner Jul 22 '20 at 10:29
  • "Tell me how you can fix it?" -- there is nothing to fix. This is a log message. It is not a crash. – CommonsWare Jul 22 '20 at 11:08
  • @CommonsWare the application is immediately closed when this error is exited – j.ss Jul 22 '20 at 11:17
  • Then you should be looking for [a stack trace](https://stackoverflow.com/q/3988788/115145). This is an ordinary message and does not indicate a problem, let alone one that would cause an app process to be terminated. – CommonsWare Jul 22 '20 at 11:42
  • post strack trace here also – Quick learner Jul 22 '20 at 11:53
  • I found my mistake, it was not related to the manifest settings. Thank you for your help – j.ss Jul 22 '20 at 12:25

1 Answers1

-1

if you are using this android:networkSecurityConfig then remove android:usesCleartextTraffic="true"

For reference NetworkSecurityConfig: No Network Security Config specified, using platform default

Quick learner
  • 9,144
  • 3
  • 37
  • 51