Could not resolve com.android.support:appcompat-v7:26.1.0 in Android Studio new project

后端 未结 14 1866
一生所求
一生所求 2020-11-30 07:22

I know about this questions:

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

Could not resolve com.android.support:appcompat-v7:26.1.0 [dup

相关标签:
14条回答
  • 2020-11-30 08:17

    this work for me. add configurations.all in app/build.gradle

    android {
        configurations.all {
            resolutionStrategy.force 'com.android.support:support-annotations:27.1.1'
        }
    }
    
    0 讨论(0)
  • 2020-11-30 08:19

    This work for me. In the android\app\build.gradle file you need to specify the following

    compileSdkVersion 26
    buildToolsVersion "26.0.1"
    

    and then find this

    compile "com.android.support:appcompat-v7"
    

    and make sure it says

    compile "com.android.support:appcompat-v7:26.0.1"
    
    0 讨论(0)
提交回复
热议问题