ns am trying to make a database via 000webhost.com. I keep acquiring this blog post showing in the event log anytime I operation the application from android studio. Does anyone knows how to resolve this problem? much appreciated!


*

*

I had additionally the very same problem. Please add this line in application tag in manifest. Ns hope it will certainly also aid you.

You are watching: No network security config specified, using platform default

android:usesCleartextTraffic="true"

*


*

I just had the exact same problem. It is no a network permission but rather object issue. Below code assisted me to solve it. Placed is in main activity

super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (android.os.Build.VERSION.SDK_INT > 9) StrictMode.ThreadPolicy plan = brand-new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy);

Check the URL it must be utilizing https quite than http protocol. In mine case transforming http to https in the URL addressed it.


I have actually a exact same problem, with volley, but this is my solution:

In Android Manifiest, in tag applications add:

android:usesCleartextTraffic="true"android:networkSecurityConfig="
xml/network_security_config"create in folder xml this record network_security_config.xml and also write this:

inside tag application include this tag:


Image is vivid.

file network-security-config.xml

*

file manifest

*

to copy & paste is easy

relevant record in github

copy xml & an essential line in manifest


This occurs to the api 28 and above, due to the fact that doesn"t expropriate http anymore, you require to adjust if you want to expropriate http or localhost requests.

Create an XML file

*

Add the complying with code ~ above the new XML file you created

*

Add this on AndroidManifest.xml

*


I understand i"m late for the answer, yet it might help someone.If you still having actually this problem, you most likely didn"t placed the method , that makes the request, in a Thread


Thanks because that contributing response to ridge Overflow!

Please be sure to answer the question. Administer details and also share her research!

But avoid

Asking because that help, clarification, or responding to other answers.Making statements based on opinion; earlier them increase with recommendations or personal experience.

See more: Cat Peeing Over Edge Of Litter Box, Litter Box Misses

To find out more, see our advice on writing an excellent answers.


write-up Your price Discard

By clicking “Post your Answer”, girlfriend agree come our terms of service, privacy policy and also cookie policy


Not the prize you're spring for? Browse various other questions tagged android or questioning your own question.


NetworkSecurityConfig: No Network protection Config specified, utilizing platform default Error response code: 400
site design / logo design © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.9.23.40286


your privacy

By clicking “Accept every cookies”, you agree ridge Exchange can store cookies on your device and disclose info in accordance v our Cookie Policy.