ANDROID STUDIO 3.0升级:错误:无法解析配置':app:xxxxxxxDebugCompileClasspath'的所有文件 [英] ANDROID STUDIO 3.0 upgrade : Error:Could not resolve all files for configuration ':app:xxxxxxxDebugCompileClasspath'

查看:833
本文介绍了ANDROID STUDIO 3.0升级:错误:无法解析配置':app:xxxxxxxDebugCompileClasspath'的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级最新的android studio稳定版后,我发现此警告

I found this warning after upgrading the latest android studio stable version

错误:无法解析配置':app:xxxxxxxDebugCompileClasspath'的所有文件.

使用转换JarTransform无法转换文件'commons-lang-2.4.jar'以匹配属性{artifactType = android-classes} 转换输出文件xxxxxxx/xxxxxxx/xxxxxxx/app/commons-lang-2.4.jar不存在.

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包装器版本:

here is gradle and gradle wrapper versions :

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

渐变包装器:

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

推荐答案

更改依赖项声明

来自

compile files('libs/commons-lang-2.4.jar')

compile files('libs/commons-lang-2.4.jar')

implementation files('libs/commons-lang-2.4.jar')

implementation files('libs/commons-lang-2.4.jar')

这篇关于ANDROID STUDIO 3.0升级:错误:无法解析配置':app:xxxxxxxDebugCompileClasspath'的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆