Android - Gradle 编译报错:Could not find any matches for....

版权声明:1、本BLOG的目的、形式及内容。   此BLOG为个人维护BLOG,内容均来自 原创及互连网转载。最终目的为收集整理自己需要的文章技术等内容,不涉及商业用途。\r\n 2、有关原创文章的版权   本BLOG上原创文章未经本人许可,不得用于商业用途及传统媒体。网络媒体转载请注明出处,否则属于侵权行为。\r\n 3、有关本站侵权   本BLOG所转载的内容,均是本人未发现有对文章版权声明的文章且 https://blog.csdn.net/shijianduan1/article/details/85130992

转载请申明,本文来自:https://blog.csdn.net/shijianduan1/article/details/85130992


问题:

Could not find any matches for com.aliyun.ams:alicloud-android-ut:latest.integration as no versions of com.aliyun.ams:alicloud-android-ut are available.
Searched in the following locations:
    file:/D:/Android/sdk/extras/m2repository/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    file:/D:/Android/sdk/extras/m2repository/com/aliyun/ams/alicloud-android-ut/
    file:/D:/Android/sdk/extras/google/m2repository/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    file:/D:/Android/sdk/extras/google/m2repository/com/aliyun/ams/alicloud-android-ut/
    file:/D:/Android/sdk/extras/android/m2repository/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    file:/D:/Android/sdk/extras/android/m2repository/com/aliyun/ams/alicloud-android-ut/
    https://jcenter.bintray.com/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    https://jcenter.bintray.com/com/aliyun/ams/alicloud-android-ut/
    https://dl.google.com/dl/android/maven2/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    https://dl.google.com/dl/android/maven2/com/aliyun/ams/alicloud-android-ut/
    https://repo.maven.apache.org/maven2/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    https://repo.maven.apache.org/maven2/com/aliyun/ams/alicloud-android-ut/
    http://maven.aliyun.com/nexus/content/repositories/releases/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    http://maven.aliyun.com/nexus/content/repositories/releases/com/aliyun/ams/alicloud-android-ut/5.2.0/alicloud-android-ut-5.2.0.pom
    http://maven.aliyun.com/nexus/content/repositories/releases/com/aliyun/ams/alicloud-android-ut/5.2.0/alicloud-android-ut-5.2.0.jar
    https://jitpack.io/com/aliyun/ams/alicloud-android-ut/maven-metadata.xml
    https://jitpack.io/com/aliyun/ams/alicloud-android-ut/
    file:/E:/Project_Co/mdm/Local_Code/MdmService/app/libs/
Required by:
    project :app > com.aliyun.ams:alicloud-android-utils:1.1.3

分析:
这是由于直接引用的远程maven仓库里的jar包,但是又找不到导致的。两种情况会出现

  1. 在维护,在更新
  2. 服务器删除了该文件,放弃了
  3. 当然如果远程服务器出现问题的话,应该是另外一种报错

解决方案:

  1. 无解,等待恢复 或使用 本地jar

最后:
好吧,其实这个问题没啥好说的, 第一次遇到这一情况,记录下

猜你喜欢

转载自blog.csdn.net/shijianduan1/article/details/85130992