Error:Excepted resource of type id
This inspection looks at Android API calls that have been annotated with various support annotations (such as RequiresPermission or UiThread) and flags any calls that are not using the API correctly as specified by the annotations.
在报错所在类的位置添加注解
@SuppressWarnings("ResourceType")