草庐IT

ANDROID STUDIO 3.0 升级: Error:Could not resolve all files for configuration ':app:xxxxxxxDebugCompileClasspath'

coder 2023-06-09 原文

我在升级最新的android studio稳定版后发现了这个警告

错误:无法解析配置“:app:xxxxxxxDebugCompileClasspath”的所有文件。

Failed to transform file 'commons-lang-2.4.jar' to match attributes {artifactType=android-classes} using transform JarTransform Transform output file xxxxxxx/xxxxxxx/xxxxxxx/app/commons-lang-2.4.jar does not exist.

这里是 gradle 和 gradle wrapper 版本:

gradle : classpath 'com.android.tools.build:gradle:3.0.0'

gradle 包装器:

distributionUrl=https\://services.gradle.org/distributions/g‌​radle-4.1-all.zip

最佳答案

更改依赖声明

来自

编译文件('libs/commons-lang-2.4.jar')

实现文件('libs/commons-lang-2.4.jar')

关于ANDROID STUDIO 3.0 升级: Error:Could not resolve all files for configuration ':app:xxxxxxxDebugCompileClasspath' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46952796/

有关ANDROID STUDIO 3.0 升级: Error:Could not resolve all files for configuration ':app:xxxxxxxDebugCompileClasspath'的更多相关文章

随机推荐