解决方法: app build.gradle中加入 implementation 'com.android.support:support-annotations:28.0.0' 转载于:https://www.cnblogs.com/51ma/p/11417851.html