Failed to resolve: com.android.support.design:25.4.0

后端 未结 11 1359
误落风尘
误落风尘 2020-12-01 07:30

I added the following line to my build.gradle(Module:app):

compile \'com.android.support:design:25.4.0\' 

But when executing Gradle I\'m ge

相关标签:
11条回答
  • 2020-12-01 07:42

    This problem occurs when there is andoridtestImplementation is added in app.build.

    Remove testImplementation,androidTestImplementation from the app.build, that solves this issue.

    0 讨论(0)
  • 2020-12-01 07:47
    There is no library by that name. There is com.android.support:recyclerview-v7:25.4.0.
    
    Failed to resolve com.android.support:support-compat:25.4.0
    Failed to resolve com.android.support:support-core-ui:25.4.0
    
    I am trying to include this library to my project by adding
    
    compile 'jp.wasabeef:recyclerview-animators:2.2.7'
    
    so remove this line from gradle
    my error just resolved
    
    0 讨论(0)
  • 2020-12-01 07:56

    You need to update the android support Repository in the SDK manager . Also the Design Library depends on the Support v4 and AppCompat Support Libraries.

    Same version android support must be the same with others..

    compile 'com.android.support:appcompat-v7:25.3.1'  <-- same
    compile 'com.android.support:design:23.3.1'  <-- same
    
    0 讨论(0)
  • 2020-12-01 07:58

    Above answers did't resolve anything for me.

    • Tried syncing the project- Failed.
    • Tried building the project -Failed

    Problem found :

    Sdk Support Repository was corrupted

    .

    Fix:

    Go to the SDK manager, click the "SDK Tools" tab. If the check-mark for "Support Repository" is selected, unselect it and click OK. This will delete all of the files in the repository. Then recheck the check-mark, click GO and reinstall the repository.

    0 讨论(0)
  • 2020-12-01 07:59

    after adding :

    maven {
        url "https://maven.google.com"
    }
    

    make sure your Gradle sync is on ONLINE mode you can check it from:

    Android studio -> Preferences -> Build, Execution, Deployment -> Gradle -> Offline work (make sure this check box is not selected)

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