Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clean up unused resource files in Android Studio

I just completed my android app. I want to clean up the unused layout files and other resource files such as images and drawables and strings which are not referenced in the actual code. How do I do that? Is there any option to do this in Android Studio?

like image 690
Samuel Robert Avatar asked Oct 08 '16 10:10

Samuel Robert


1 Answers

You can able to remove unused resources by following way.

  1. Analyze > Inspect Code and find Unused Declarations and Methods.

  2. Android Studio -> Menu -> Refactor -> Remove Unused Resources.

like image 89
pRaNaY Avatar answered Oct 27 '22 10:10

pRaNaY