android - 错误:找不到:vectordrawable-animated-1.1.0

标签 android gradle

我有gradle问题。它工作正常,但是在我重建项目时突然出现了以下错误:

Could not find vectordrawable-animated-1.1.0.jar (androidx.vectordrawable:vectordrawable-animated:1.1.0).
Searched in the following locations:
    https://dl.google.com/dl/android/maven2/androidx/vectordrawable/vectordrawable-animated/1.1.0/vectordrawable-animated-1.1.0.jar
我找不到我的问题是什么?
我的app.gradle
apply plugin: 'com.android.application'

android {
    compileSdkVersion 30
    buildToolsVersion "29.0.3"

    defaultConfig {
        applicationId "com.example.pakagename"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

    }

    defaultConfig {
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'de.hdodenhof:circleimageview:3.1.0'
    implementation 'com.airbnb.android:lottie:3.4.1'
    //noinspection GradleCompatible
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.loopj.android:android-async-http:1.4.10'
    implementation 'com.github.mreram:showcaseview:1.1'
    implementation 'androidx.recyclerview:recyclerview:1.1.0'

    implementation 'com.github.dhaval2404:imagepicker-support:1.5'
    implementation 'com.github.aliab:Persian-Date-Picker-Dialog:1.5.2'

    implementation 'com.wang.avi:library:2.1.3'
    implementation 'com.github.mukeshsolanki:android-otpview-pinview:2.1.0'




    implementation 'com.github.smarteist:autoimageslider:1.3.7-appcompat'

    implementation 'com.wang.avi:library:2.1.3'
    implementation 'com.android.support:design:28.0.0'

    implementation 'com.github.jaiselrahman:FilePicker:1.3.2'
    implementation 'ir.he.meowdatetimepicker:library:1.0.2'
    implementation 'cat.ereza:customactivityoncrash:2.3.0'
}
和我的build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        maven { url 'https://maven.google.com' }
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
        maven { url 'https://dl.bintray.com/tapsellorg/maven' }
    }
}

最佳答案

我猜这是由于软件包下载不正确(制裁和...)造成的。
我按照以下步骤进行了工作:

  • 连接到VPN
  • caches中删除deamons~/.gradle文件夹。
  • 在android文件夹(已清理的项目gradle)中运行gradlew clean
  • 重新运行项目
  • 关于android - 错误:找不到:vectordrawable-animated-1.1.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63093426/

    相关文章:

    android - Windows 8.1 64 位上的 PhoneGap 使用 Platform add android 命令出现错误

    java - 如何在android中调整捕获图像的大小

    android - 如何获得当前屏幕配置的最佳 admob 尺寸?

    java - Gradle - 使用以闭包作为参数的插件方法的语法错误

    jenkins - SonarQube 未在 Gradle 多项目中显示 JUnit 测试的测试 Jacoco 覆盖率

    android - 关于点赞系统(比如facebook点赞系统)使用myisam Mysql

    android - 如何使用 android view client 运行 Genymotion?

    java - Gradle 在 ClassPath 中生成不可移植的绝对路径

    android - 更新到 AGP 3.2.0 后,BuildConfig.VersionCode 未反射(reflect)实际版本代码

    java - 无法合并Dex