原文链接stack overflow: 解决方法: 第一步: 在build.gradle的项目依赖文件中加入依赖: implementation 'androidx.annotation:annotation:1.1.0' 第二步: sync