参考链接
stackoverflow.com/questions/5…
主要原因:
gradle 文件没有导入 support v4 包
implementation 'com.android.support:appcompat-v7:28.0.0'
// 添加下面这句即可
implementation 'com.android.support:support-v4:28.0.0'
——乐于分享,共同进步,欢迎留言讨论
——Treat Warnings As Errors
——Any comments greatly appreciated
——Talking is cheap, show me the code
——CSDN:blog.csdn.net/u011489043
——GitHub:github.com/selfconzrr