Failed to resolve: com.android.support:support-v4:23.0.0

前端 未结 9 712
日久生厌
日久生厌 2020-12-05 18:04

After update with the latest Android support library 23.1 i get this error

Failed to resolve: com.android.support:support-v4:23.0.0

相关标签:
9条回答
  • 2020-12-05 18:41

    Go to File -> Project Structure then select Dependencies tab and remove com.android.support:support-v4:23.0.0

    It worked for me

    0 讨论(0)
  • 2020-12-05 18:50

    Had to add "Android Support Repository" from SDK Manager.

    0 讨论(0)
  • 2020-12-05 18:52

    I ran into the same problem today. Although the SDK Manager marked a few libraries as installed, investigating the location of the files showed me the correct folder structure, without any files in them.

    For example, checking out the location of 23.1.0 appcompat-v7 on my Mac: .../sdk/extras/android/m2repository/com/android/support/appcompat-v7 turned out to be an empty folder.

    I suspect the update I ran minutes before went wrong somehow.

    What solved it for me:

    1. in Android Studio, open Appearance and Behaviour -> System Settings -> SDK Manager
    2. under tab "SDK Tools" un-check the libraries causing problems
    3. click "apply" to uninstall them
    4. re-check the same libraries
    5. click "apply" to reinstall them
    6. close SDK Manager and run Gradle sync / build
    0 讨论(0)
  • 2020-12-05 18:54

    The support libraries are now available through Google's Maven repository.

    Step 1: Open the build.gradle file of your project.

    Step 2: Make sure that the repositories section includes a maven section with the "https://maven.google.com" url in it.

    allprojects {
        repositories {
            jcenter()
            maven { url 'https://maven.google.com' }
        }
    }
    
    0 讨论(0)
  • 2020-12-05 19:01

    I got a similar problem, was trying to change versions and so on. Did not work for me. Only after I changed the version and restarted Studio it started to work. Probably gradle doesn't sync that normaly while you don't restart Studio.

    0 讨论(0)
  • 2020-12-05 19:03

    In my case, opening SDK manager and installing Local Maven Repository for Support Libraries fixed my issue.

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