私有仓库的jar 无法下载
maven {
url "http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/"
}
implementation 'com.ali.auth.sdk:alibabauth_core:1.4.3@jar'
implementation 'com.ali.auth.sdk:alibabauth_ui:1.4.3@aar'
implementation 'com.ali.auth.sdk:alibabauth_ext:1.4.3@jar'
Resource missing. [HTTP GET: http://maven.aliyun.com/nexus/content/groups/public/com/ali/auth/sdk/alibabauth_ui/1.4.3/alibabauth_ui-1.4.3.pom]
Resource missing. [HTTP HEAD: http://maven.aliyun.com/nexus/content/groups/public/com/ali/auth/sdk/alibabauth_ui/1.4.3/alibabauth_ui-1.4.3.aar]
ould not find com.ali.auth.sdk:alibabauth_core:1.4.3.
Searched in the following locations:
file:/Users/apple/Documents/soft/android-sdk-macosx/extras/m2repository/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.pom
file:/Users/apple/Documents/soft/android-sdk-macosx/extras/m2repository/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.jar
file:/Users/apple/Documents/soft/android-sdk-macosx/extras/google/m2repository/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.pom
file:/Users/apple/Documents/soft/android-sdk-macosx/extras/google/m2repository/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.jar
file:/Users/apple/Documents/soft/android-sdk-macosx/extras/android/m2repository/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.pom
file:/Users/apple/Documents/soft/android-sdk-macosx/extras/android/m2repository/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.jar
https://jcenter.bintray.com/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.pom
https://jcenter.bintray.com/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.jar
https://www.jitpack.io/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.pom
https://www.jitpack.io/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.jar
file:/Users/apple/Documents/wasutv4.0/libs/alibabauth_core-1.4.3.jar
file:/Users/apple/Documents/wasutv4.0/libs/alibabauth_core.jar
https://maven.google.com/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.pom
https://maven.google.com/com/ali/auth/sdk/alibabauth_core/1.4.3/alibabauth_core-1.4.3.jar
发现的莫名其妙的原因,折腾了好久,最后才发现是因为代理的原因;
我的是mac电脑;
在AS里设置了代理之后,会修改本地的文件,.gradle/gradle.properties;
而你在AS里再次设置没有代理的时候,他不会修改本地文件,所以需要手动去修改这个配置文件。
如果发现莫名其他jar无法下载的时候,是不是代理了,其实也是,错误日志上没发现异常。