B
B
Boktan2020-10-09 13:12:24
Android
Boktan, 2020-10-09 13:12:24

Fix Flutter Image.network (Error=7)?

The following SocketException was thrown resolving an image codec:
Failed host lookup: 'i.pinimg.com' (OS Error: No address associated with hostname, errno = 7)

When the exception was thrown, this was the stack
Image provider: NetworkImage( " https://i.pinimg.com/originals/7d/8f/34/7d8f34dc8e... ", scale: 1.0)
Image key: NetworkImage(" https://i.pinimg.com/originals/7d/8f /34/7d8f34dc8e... ", scale: 1.0)

Expanded(
child: Image.network(' https://i.pinimg.com/originals/7d/8f/34/7d8f34dc8e... '
),
),

added in AndroidManifest.xml
5f8037436663f156935044.png
I do not use a proxy.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boktan, 2020-10-14
@Boktan

This problem is solved through the DNS server. You need to put a direct connection to google server 8.8.8.8 and the Internet on the device will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question