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'
}