Android Auto cleanup useless resource tool

Source: Internet
Author: User

Principle:

Use lint scan out the project of useless, duplicate, version unreasonable resources, here we only deal with pictures, Layout,menu resources is corresponding lint

The results of the unusedresources, and then filter out the Unusedresources resources, the resources in accordance with the project directory backup (to prevent accidental deletion, convenient

recovery), and then delete. Deleted content, use object to save to OutData.txt, easy to consult.


I use Android Studio's lint plugin as an example (scan results have a clean and neat XML structure for easy data processing).




Steps:

1. Launch Android studio and run the target Android project using lint mode


Click Run


2. Automatically generate Lint-result.xml file, directory: Project Path \build\outputs\lint-result.xml


3. Configure Whitelist Whitelist.txt to filter out files that you do not need to delete



4. Click AutoCleaner.exe under File, select Lint-result.xml and select the resources you want to clean up.


5. Determine the cleanup, the cleaned files are backed up to the original path of the File\copyfile\ project, and the erased file information is in the form of an object
Save in OutResObj.txt


6. Complete the deleted files and follow the original directory backup



 

From for notes (Wiz)

Android Auto cleanup useless resource tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.