Andriod 專案,阿里云依賴問題
問題一
Could not resolve com.aliyun.ams:alicloud-android-ut:latest.integration.
... ...
Received status code 403 from server: Forbidden
... ...
問題二
A problem occurred configuring root project 'xxx'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.aliyun.ams:emas-services:1.0.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.pom
- https://dl.google.com/dl/android/maven2/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.jar
- https://jcenter.bintray.com/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.pom
- https://jcenter.bintray.com/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.jar
- http://maven.aliyun.com/nexus/content/groups/public/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.pom
- http://maven.aliyun.com/nexus/content/groups/public/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.jar
- http://maven.aliyun.com/nexus/content/repositories/releases/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.pom
- http://maven.aliyun.com/nexus/content/repositories/releases/com/aliyun/ams/emas-services/1.0.1/emas-services-1.0.1.jar
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
解決辦法:
1. 找到專案根目錄的build.gradle
2. 將所有
maven { url 'http://xxx.xxx.xxx/' }
修改為
maven { url 'https://xxx.xxx.xxx/' }
搞定啦~~~
是不是很簡單~~~
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/280377.html
標籤:其他
上一篇:解決執行緒同步的方案匯總總結
