android studio报错:Connect to maven.google.com:443 [maven.google.com] failed: Connection timed out

问题描述:构建好项目,cordova build android第一次打包时报错,maven.google.com拉取超时

android studio报错:Connect to maven.google.com:443 [maven.google.com] failed: Connection timed out_第1张图片

 解决方案:修改build.gradle的buildscript 和 allprojects的 url "https://maven.google.com"地址

android/build.gradle

android/app/build.gradle

android/CordovaLib/build.gradle

android studio报错:Connect to maven.google.com:443 [maven.google.com] failed: Connection timed out_第2张图片

maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
maven { url "https://jitpack.io" } // add this line.

 android studio报错:Connect to maven.google.com:443 [maven.google.com] failed: Connection timed out_第3张图片

 

你可能感兴趣的:(Android,android,studio,android)