更新时间:2022-02-18 10:38:40
由于ADT 16,你可以用 Android的皮棉。这实在是令人惊讶的工具。
Since ADT 16 you can use Android Lint. It is really amazing tool.
Android的皮棉是ADT 16(与工具16)一个新的工具来扫描Android项目来源潜在的bug。
Android Lint is a new tool for ADT 16 (and Tools 16) which scans Android project sources for potential bugs.
下面是错误类型的一些例子,它看起来为:
Here are some examples of the types of errors that it looks for:
然而,它有一些问题(不知道是不是他们已经固定),如果你想删除数百个所谓未使用的资源,我建议你手动编译项目数次资源中删除,以确保林特并没有消除需要的东西。
However, it has some issues (don't know if they're already fixed) and if you want to delete hundreds of supposedly unused resources I'd recommend to manually compile project several times during resource removing to be sure that Lint didn't remove something needed.