当下载第三方库失败的时候,通过Android Studio中配置aliyun maven库,达到正常下载库效果
在项目的根build.gradle里面(不是module)buildscriptde对应位置添加配置:
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://dl.google.com/dl/android/maven2/' }
maven { url "https://www.jitpack.io" }