Translate

Monday, October 16, 2017

Remove all unused resources from an android project

You can easily search for unused resources from Android Studio. Just press Ctrl+Alt+Shift+i and type "Unused resources" (without quotes). That will execute lint. Super easy way how run lint commands (and other stuff from IDE).
OR
In Android Studio -> Menu -> Refactor -> Remove Unused Resources...
Select the resources you want to remove. You can exclude resources you want to keep by right clicking on the resource item.
Use Do Refactor to remove all Resources at once.
Update: use cmd+ Alt+ Shift for mac

No comments:

Post a Comment

Could not identify launch activity: Default activity not found : Error while Launching activity

Problem : I got this Error , When I tried to create an application without any Activity . Basically like to develop an Android Headless appl...