【问题标题】:Graddle Error Shows "Could not resolve all files for configuration ':app:debugRuntimeClasspath'."Gradle 错误显示“无法解析配置 ':app:debugRuntimeClasspath' 的所有文件。”
【发布时间】:2021-09-03 06:19:06
【问题描述】:

您好,我的项目在运行时出现问题

任务“:app:checkDebugAarMetadata”执行失败。 无法解析配置“:app:debugRuntimeClasspath”的所有文件。 找不到 androidx.recycleview:recycleview:1.1.0。

这是我的 graddle 看起来像

plugins {
id 'com.android.application'
id 'kotlin-android'
}

android {
compileSdkVersion 30

defaultConfig {
    applicationId "com.example.mysubmission"
    minSdkVersion 21
    targetSdkVersion 30
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard- 
 rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
 }
}

dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.5.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.recycleview:recycleview:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

如果有人知道如何解决它,我不知道如何解决它,我很感激

【问题讨论】:

    标签: android android-studio kotlin gradle android-gradle-plugin


    【解决方案1】:

    替换

    implementation 'androidx.recycleview:recycleview:1.1.0'
    

    implementation 'com.google.android.material:material:1.3.0'
    

    【讨论】:

      猜你喜欢
      • 2022-08-06
      • 2022-10-25
      • 2022-08-19
      • 2022-08-02
      • 2018-11-19
      • 2023-02-13
      • 1970-01-01
      • 2020-04-17
      • 1970-01-01
      相关资源
      最近更新 更多