Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Network Security Config specified, using platform default - Android Log

Tags:

android

I am trying to make a database via 000webhost.com. I keep getting this message showing in the event log whenever I run the app from android studio. Does anyone knows how to solve this problem? Much appreciated!

like image 891
yeo Avatar asked Oct 08 '16 14:10

yeo


People also ask

What is network security config in Android?

The Network Security Configuration feature lets you customize your app's 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.

What is network security configuration?

Network Security Configuration is an XML file in which developers customize network security settings for an Android app.


1 Answers

I had also the same problem. Please add this line in application tag in manifest. I hope it will also help you.

android:usesCleartextTraffic="true" 
like image 184
paul polash Avatar answered Sep 20 '22 22:09

paul polash