Right-click in the project (or Analyze in the menu), in the right-click menu that appears, there is "Analyze"-"Run Inspaction by Name ...". Enter the type of check you want to perform in the pop-up search window, such as "Unused Resources". Do not need to enter all should be automatically found, the click will pop up "inspaction scope" Selection window, select the scope of inspection, general selection of the entire project or module. Under the "Inspaction scope" window can also set the file filter, select OK after the click OK to start checking. You can then remove duplicate resources based on the results of the inspection.
In addition to the manual method removal described above, if you are using studio1.4.0 and later versions, then the Gradle build system supports the automatic removal of useless resources by simply adding the following code to your gradle configuration file
Android { ... Buildtypes { Release { true true proguardfiles Getdefaultproguardfile (' proguard-android.txt '), ' Proguard-rules.pro '}} }
Gradle not only removes useless resources from your application, but also removes useless resources from the libraries you reference, making your app slim and powerful.
Official Note: http://tools.android.com/tech-docs/new-build-system/resource-shrinking
Android uses lint + Studio to troubleshoot client-side useless string,drawable,layout resources