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

后端 未结 14 1922
一生所求
一生所求 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: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"
    

提交回复
热议问题