No Network Security Config specified, using platform default

android d/networksecurityconfig: no network security config specified
using network security config from resource network_security_config debugbuild: true
network-security-config react native
attribute networksecurityconfig is only used in api level 24 and higher
resources/android/xml/network_security_config=@xml
no resource identifier found for attribute 'networksecurityconfig' in package 'android'
android-base config
failed to parse xml configuration from network_security_config

I'm trying to print a list of values in ListView from a webpage. I have the two permission

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

However I'm getting this message,

D/NetworkSecurityConfig: No Network Security Config specified, using platform default

I'm not sure what it means and how to fixed.

The message you're getting isn't an error; it's just letting you know that you're not using a Network Security Configuration. If you want to add one, take a look at this page on the Android Developers website: https://developer.android.com/training/articles/security-config.html.

No Network Security Config specified, using platform default, The message you're getting isn't an error; it's just letting you know that you're not using a Network Security Configuration. If you want to add one  Check the url it should be using https rather than http protocol, in my case changing http to https in url solved it. share | improve this answer | follow | | | | answered May 4 '17 at 11:16

I had the same issue and after debugging it further, I found it a thread issue. I changed onCreate method as below and it works fine. No playing Network Security Configuration file.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (android.os.Build.VERSION.SDK_INT > 9)
        {
           StrictMode.ThreadPolicy policy = new 
           StrictMode.ThreadPolicy.Builder().permitAll().build();
           StrictMode.setThreadPolicy(policy);
        }
  ....
  ....
  }

Hope it helps.

No Network Security Config specified, using platform default, NetworkSecurityConfig: No Network Security Config specified, using platform default. The Network Security Configuration feature lets apps customize their network security settings in a safe, declarative configuration file without modifying app code. First of all, The message you're getting isn't an error; it's just letting you know that you're not using a Network Security Configuration. If you want to use the Network Security Configuration. please add the android:networkSecurityConfig in the same application tab like following code, in other words, please use unique application tab in your AndroidManifest.xml

This is my local context solution...

I have a Docker/Lando instance providing me an API from a Lumen Restful app, local domains are not working ("https://localhost:32769", "http://localhost:32770", "http://wxyz.lndo.site", "https://wxyz.lndo.site"), however, when I check the network IP using "ifconfig" in the terminal I could access using that IP

$ ifconfig

You must add a new parameter to your AndroidManifest.xml

android:networkSecurityConfig="@xml/network_security_config"

I use this network_security_config.xml file for local debugging

<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:android="http://schemas.android.com/apk/res/android">
    <debug-overrides>
        <trust-anchors>
            <certificates src="user" overridePins="true"/>
        </trust-anchors>
    </debug-overrides>
</network-security-config>

I use user-permissions as well

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

D/NetworkSecurityConfig: No Network Security Config specified , Im getting the error D/NetworkSecurityConfig: No Network Security Config specified, using platform default when my method attempts to  NetworkSecurityConfig: No Network Security Config specified, using platform default. The Network Security Configuration feature lets apps customize their network security settings in a safe, declarative configuration file without modifying app code. These settings can be configured for specific domains and for a specific app.

Add this:

android:usesCleartextTraffic="true"

to your manifest application

 <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:usesCleartextTraffic="true"
        android:theme="@style/AppTheme"
    >

hope it helps

No Network Security Config specified, using platform default · Issue , My problem arises when playing audio on Android 9 - Api 28 throws me the error "No Network Security Config specified, using platform default". D/NetworkSecurityConfig: No Network Security Config specified, using platform default with API 28 Android Pie #226 Closed arachaic opened this issue Oct 9, 2018 · 1 comment

D/Networksecurityconfig: no network security config specified, using , I am getting this error "No Network Security Config specified, using platform default", while I send HttpClient request in my Android Emulator  NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true; Multiple login using spring security, java config; No input file specified : Can't config NGINX Alias; Data source name not found, and no default driver specified; Homestead.test default file gives [No input file specified] Ubuntu; No

Network security configuration, D/Networksecurityconfig: no network security config specified, using platform default. by alecxe (7.5k points). The Network Security Configuration feature lets apps customize their network security settings in a safe, declarative configuration file without modifying app code. These settings can be configured for specific domains and for a specific app.

core/java/android/security/net/config/ManifestConfigSource.java , Feature that allows app developers to customize network security settings settings in a safe, declarative configuration file without modifying app code. The Network Security Configuration feature uses an XML file where you specify the Values not set in the base-config use the platform default values. The android.security.net.config package [3] implements the Network Security Configuration module, while the main class, ManifestConfigSource, loads either the custom configuration specified in the XML file or the default configuration (if the resources file does not exist). You can see this below:

Comments
  • This is not a problem. Follow this answer -> stackoverflow.com/questions/41365334/…
  • I already saw that question but It doesn't help me. I still have the problem
  • Possible duplicate of No Network Security Config specified, using platform default.