Go / etc / resolv.conf is missing in android

I cross-compiled Go source code in Arm to run on Android. The program runs in the terminal on the Android device, but I get an error that /etc/resolv.conf is missing. My program relies heavily on the network / http library for creating http calls.

How can I handle this error in Android?

+5
source share
1 answer

As right now you cannot use the built-in network / http to connect to host names, check issue .

There are several workarounds that you can use.

+4
source

Source: https://habr.com/ru/post/1202331/


All Articles