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/' }
搞定啦~~~
是不是很简单~~~