您的位置:首页 > 移动开发 > Android开发

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

2015-12-28 16:59 633 查看
文章参考自: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

废弃资源一扫而空。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: