Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Error:Could not resolve all files for configuration ':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.

here is gradle and gradle wrapper versions :

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

and

gradle wrapper :

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

like image 491
Nawrez Avatar asked Oct 26 '17 11:10

Nawrez


2 Answers

change dependency declaration

from

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

to

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

like image 127
scionoftech Avatar answered Sep 27 '22 17:09

scionoftech


I had the same problem, build -> clean project worked for me.

like image 42
Audida Avatar answered Sep 27 '22 18:09

Audida