按照官网描述,执行性测试安装时遇到问题:Could not resolve com.android.tools.build:gradle:2.2.3.
测试安装
react-native init AwesomeProject
cd AwesomeProject
react-native run-android
查了半天发现:Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection refused (Connection refused)
还是代理的问题,重新设置代理,我用的是 VSCode编译,所以添加下面代理设置:
"http.proxy": "http://127.0.0.1:1080",
"http.proxyStrictSSL": false
http://127.0.0.1:1080 是我本地代理