Android Studio Lint Automatic Check to clear redundant resources

Source: Internet
Author: User

(Android Lint) worked hard for a long cycle to finish the project. But after packing up the size of the APK, it makes you wonder if you don't even know where to copy it. Code and code-related layout file resources, which are used which are not used, clear these unused resources, so that the whole project is refreshing, the APK size can be compressed is we need to master the skills

Select the project is usually the app click right button such as:

Mouse move to Analyze (Chinese interpretation: Analysis) then click Run Inspection by Name ... (Chinese interpretation: Scan by name)

Input unused unused inside there are many items to check for example: Unused ID, import, the library can be checked according to their own needs, here we selected resources pop up the following dialog box:

The results of the scan have come out, give me this project to check out 29 resource files that have not been used. This time we will manually remove these unused resource files.

Android Studio Lint Automatic Check to clear redundant resources

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.