Android Studio Could not find any version that matches com.android.support:appcompat-v7:29

This support library should not use a different version than the compilesdkversion 26 than the compileSdkVersion (29);
先上张图:
在这里插入图片描述
路径打开build.gradle,参考如下配置,根据自己的SDK设进行更改;

dependencies {
    //sdk29 android Q
    implementation 'com.android.support:appcompat-v7:+'
    implementation 'com.android.support:design:+'
    ----------------------------------------------------------
    如下根据自己的SDK配置参考使用;
    //SDK28 android P
    implementation 'com.android.support:appcompat-v7:28+' & implementation 'com.android.support:appcompat-v7:28.0.0'
    //SDK27 android O
    implementation 'com.android.support:appcompat-v7:27+'
    //SDK26 android N
    implementation 'com.android.support:appcompat-v7:26.1.0'
}

猜你喜欢

转载自blog.csdn.net/xiao_yuanjl/article/details/98747271