The mac system solves the problem of Could not get resource 'https://dl.google.com' when the RN project starts

Reason: After the computer is configured with a proxy, the proxy is not used when downloading, so the things in 'https://dl.google.com' cannot be downloaded

 

solution:

Run command in terminal:

cd .gradle

open .

 Open gradle.properties

Modify the code in the ~/.gradle/.gradle.properties file to:

# systemProp.https.proxyPort=1080
systemProp.http.proxyHost=127.0.0.1
# systemProp.https.proxyHost=127.0.0.1
systemProp.http.proxyPort=1080

can successfully solve the problem

Guess you like

Origin blog.csdn.net/marsur/article/details/106228894