Trying to add a package using the package get option on Android Studio. I'm getting the following error message:
" Got socket error trying to find package english_words at https://pub.dartlang.org."
Please how can i resolve this?
Trying to add a package using the package get option on Android Studio. I'm getting the following error message:
" Got socket error trying to find package english_words at https://pub.dartlang.org."
Please how can i resolve this?
Quoted from Android Studio's doc:
Android Studio supports HTTP proxy settings so you can run Android Studio behind a firewall or secure network.
You need to fix the Proxy Settings in Android Studio. From Android Studio's Documentation Site, I am Sharing the process.
I hope it helps. Thanks.
Like @SouravOni's answer suggests, this is definitely a network issue. The Dartlang server obviously has issues with restricting certain countries.
The fastest way to solve this is by connecting via a VPN. In my case, I use a Kaspersky Antivirus that comes with a VPN , all I had to do was change my location to United Kingdom and then it works
One way to test if this is a connection issue that needs VPN is to visit pub.dartlang.org, if it doesn't go through, then try a VPN