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

前端 未结 3 980
长发绾君心
长发绾君心 2020-12-31 03:58

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

Error:Could not resolve all files for configuration \':app:xxxxxxxDebugCompil

相关标签:
3条回答
  • 2020-12-31 04:36

    change dependency declaration

    from

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

    to

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

    0 讨论(0)
  • 2020-12-31 04:36

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

    0 讨论(0)
  • 2020-12-31 04:39

    Change the classpath of Project Gradle to:

     classpath 'com.android.tools.build:gradle:3.1.0-alpha01'
    

    OR

    change distributionUrl of gradle-wrapper.properties to

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    

    Hope it helps you

    0 讨论(0)
提交回复
热议问题