在build.gradle中添加 dependencies { implementation 'com.android.support:recyclerview-v7:28.+'} 版本号与appcompat一致