官方指导文档
https://developer.android.google.cn/codelabs/build-your-first-android-app#0
如果出现
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
然后再同步gradle文件就可以了