(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