Failed to resolve: com.android.support:appcompat-v7:26.0.0

后端 未结 14 1542
旧时难觅i
旧时难觅i 2020-11-22 05:56

I am having this issue in Android studio.

Error:(22, 13) Failed to resolve: com.android.support:appcompat-v7:26.0.0
Install         


        
相关标签:
14条回答
  • 2020-11-22 06:42

    Can you control internet access ? If you dont have internet access, your ide doesnt download package then you encountered this problem.

    0 讨论(0)
  • 2020-11-22 06:43

    To use support libraries starting from version 26.0.0 you need to add Google's Maven repository to your project's build.gradle file as described here: https://developer.android.com/topic/libraries/support-library/setup.html

    allprojects {
            repositories {
                jcenter()
                maven {
                    url "https://maven.google.com"
                }
            }
        }
    

    For Android Studio 3.0.0 and above:

    allprojects {
            repositories {
                jcenter()
                google()
            }
        }
    
    0 讨论(0)
提交回复
热议问题