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

前端 未结 6 947
旧巷少年郎
旧巷少年郎 2020-11-28 06:28

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

6条回答
  •  猫巷女王i
    2020-11-28 07:02

    This occurs to the api 28 and above, because doesn't accept http anymore, you need to change if you want to accept http or localhost requests.

    1. Create an XML file Create XML file

    2. Add the following code on the new XML file you created Add base-config

    3. Add this on AndroidManifest.xml Add this code line

提交回复
热议问题