TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Android-resource-remover – utility to auto-remove unused Android resources

33 点作者 philippb大约 11 年前

3 条评论

dotnick大约 11 年前
I remember reading somewhere that lint might give false positives if you refer to resources in your Java code instead of the xml.<p>From the README:<p><i>If you have references to elements in an old layout that you&#x27;re not using anymore, you will get a compile error that the ID (R.id.&lt;something&gt;) can not be found. The reason is that the resource file that contained R.id.&lt;something&gt; has been removed as it was not used any more. Time to clean up your code.</i><p>If there is a reference to the resource somewhere doesn&#x27;t that mean that the resource is in use?
评论 #7634859 未加载
Windwaker大约 11 年前
When I run:<p><pre><code> android-resource-remover --lint &lt;LINT_DIR&gt; </code></pre> On my projects root it gives me this[1]. Seems as if the tools is calling lint incorrectly.<p>[1]: <a href="http://hastebin.com/apucalovak.vhdl" rel="nofollow">http:&#x2F;&#x2F;hastebin.com&#x2F;apucalovak.vhdl</a>
评论 #7643264 未加载
评论 #7631053 未加载
pianoben大约 11 年前
This is super-useful; sometimes it takes more time to find the right resource to edit than the time it takes to actually make the change!