Reason & Solution:
1. The network permission is not enabled
2 HTTP is not supported
Add network permissions to AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
If the error is still reported, add the following to the Application in the AndroidManifest.xml file
android:usesCleartextTraffic="true"
Reason: On Android 9.0 machines, http access is not supported by default, all network access must use https. of course Android has supported https in several earlier versions, except that http is not supported by default using https on 9.0.
If the above operation can not be solved, please uninstall the application first, and then run it again.
Read More:
- [Tomcat] Unrecognized Windows Sockets error: 10106: Socket creation failed
- [Solved] Windows Redis Error: Could not create server TCP listening socket 127.0.0.1:6379: bind…
- [Solved] Jedis connect and operate Redis error: Failed to create socket和connect timed out
- Springboot Files Upload Limit Error: The field file exceeds its maximum permitted size of 1048576 bytes
- Hive operation TMP file viewing content error [How to Solve]
- How to Solve Springboot Upload Files Error: The field XXX exceeds its maximum permitted size of 1048576 bytes
- Java.sql.sqlexception: unable to read more data from socket
- Using Post no Body Error: socket hang up [How to Solve]
- [Solved] Python Error: socket.error [Errno 9] Bad file descriptor
- Continuous Error 404 in servlet operation [How to Solve]
- java.net.SocketException: software caused connection abort: socket write error resolution (selenium)
- Redis Startup Error: Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] Redis Error: Error condition on socket for SYNC: No route to host
- Springboot WARNING: An illegal reflective access operation has occurred
- [Solved] canal Startup Error: error while reading from client socket java.io.IOException: Received error packet:
- [Solved] IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of
- [Solved] Pycharm Failed to Upload: Upload to *** failed. Could not list the contents of folder “sftp
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified…bug
- [Solved] itextpdf Read PDF File Error: Rebuild failed: trailer not found.
- Failed to restart redis-server.service Unit not found [How to Solve]