1、提示Class ‘xxx’ is never used如下图: 2、解决方式: 【File】 —> 【Settings】 —> 【Editor】—> 【inspections】 —>搜索框输入 【Declaration redundancy】---->找到【Unused declaration】的勾选取消掉即可,如下图: 3、效果图: 相关文章: 2022-01-14 2021-07-27 2022-12-23 2021-04-27 2022-12-23 2021-05-18 2022-12-23 2021-06-03