NetworkSecurityConfig: No Network Security Config specified, using platform default Error response code: 400
Try these solutions
Solution 1)
Add the following attribute to the <application
tag in AndroidManifest.xml
:
android:usesCleartextTraffic="true"
Solution 2)
Add android:networkSecurityConfig="@xml/network_security_config"
to the <application
tag in app/src/main/AndroidManifest.xml
:
<application
android:name=".ApplicationClass"
android:allowBackup="true"
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">
With a corresponding network_security_config.xml
in app/src/main/res/xml/
:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
Refer this answer for more info:
Download Manger not working in Android Pie 9.0 (Xiaomi mi A2)
**D/NetworkSecurityConfig: No Network Security Config specified, using platform default**
You have to reset your emulator after give permissons and set manifest xml.
NetworkSecurityConfig: No Network Security Config specified -- Android 7.0 error?
There is no problem with this message:
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
The D/
indicates that this is a debugging message. It indicates that you do not have your own network security configuration defined, and so platform-default rules apply. This is perfectly fine.
application looks empty because it does not response from the internet
Near as I can tell, you are parsing some JSON, iterating over it, and populating kisiler
. Perhaps kisiler
is not connected to your UI.
Related Topics
Android: Switch Camera When Button Clicked
How to Change a Bitmap's Opacity
How to Serialize Object to JSON
Android:Change App Label Programmatically
Java - Ignore Expired Ssl Certificate
Code Will Only Return 0.0, 0.0 Gps Coordinate While Throwing Nullpointerexception
Android Studio Convert Iso String to "America/New_York" When Adding to Event to Calendar
How to Automatically Generate Getters and Setters in Eclipse
Which Jdk Version (Language Level) Is Required for Android Studio
Dynamic Listview in Android App
How to Get Timezone from Android Mobile
Check for Active Internet Connection Android
Java.Sql.Sqlexception: Column Count Doesn't Match Value Count at Row 1
How to Connect Android with MySQL Using MySQL Jdbc Driver
Different War Files, Shared Resources
How to Parse Date from Gmt Timezone to Ist Timezone and Vice Versa in Android