AndroidStudio中Method “xxx” is never used 解决方案

在使用AndroidStudio时,方法明明被调用的,却仍然提示 Method Method “xxx” is never used。并且不影响项目的正确运行,经过网上的搜索终于找到了解决方案。

错误示例:

解决方案:

在Androidstudio的菜单File下点击Invalidate Caches/Restart... 重启Androidstudio完美解决问题。

发布了24 篇原创文章 · 获赞 22 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/cxscxs123cxs/article/details/103006379