小编NoN*_*ame的帖子

无法解析 com.android.tools.build:aapt2:7.3.1-8691043

当我创建新项目时,项目成功运行,但之后当我退出 android studio 并重新打开项目时,会出现此错误

在此输入图像描述

Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform material-1.7.0.aar (com.google.android.material:material:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not isolate parameters com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@8d32791 of artifact transform AarResourcesCompilerTransform
         > Could not isolate value com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@8d32791 of type AarResourcesCompilerTransform.Parameters
            > Could not resolve all files for configuration ':app:detachedConfiguration2'.
               > Could not find com.android.tools.build:aapt2:7.3.1-8691043.
                 Searched in the following locations:
                   - https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/7.3.1-8691043/aapt2-7.3.1-8691043.pom
                   - https://repo.maven.apache.org/maven2/com/android/tools/build/aapt2/7.3.1-8691043/aapt2-7.3.1-8691043.pom
                 Required by:
                     project :app

Run Code Online (Sandbox Code Playgroud)
  • Android …

gradle android-studio android-gradle-plugin

7
推荐指数
1
解决办法
1957
查看次数