Android Studio资源自动清理工具 - Lint Cleaner Plugin

来源:互联网 发布:更相减损术的c语言 编辑:程序博客网 时间:2024/06/11 04:54

文章参考自:https://github.com/marcoRS/lint-cleaner-plugin

Android项目随着迭代时间越来越长,代码废弃资源也会越来越多。
Lint Cleaner Plugin这个github源上小工具,简单易用,省去了不少麻烦。

首先,配置一下app的build.gradle文件

buildscript {  repositories {    mavenCentral()  }  dependencies {    classpath 'com.android.tools.build:gradle:0.12.+'    classpath 'com.droidtitan:lint-cleaner-plugin:0.3.0'  }}apply plugin: 'android'apply plugin: 'com.droidtitan.lintcleaner'

然后在项目根目录下,执行清理命令,

gradle lintClean

或者

./gradlew lintClean

废弃资源一扫而空。

这里写图片描述

1 0
原创粉丝点击