Android Studio and androidstudio
Sometimes we add some resources, fragments, and useless code. When adding third-party libraries, we only need to use some of the functions and resources, at this time, it would be very difficult to do it manually. Especially when the project was large, Tor Norbye, an Android team engineer, was released on Google + in November 1, 2014, the Android Gradle plug-in supports deleting unused resources. The configuration method is as follows:
android { buildTypes { release { minifyEnabled true shrinkResources true } }}
For image resources and xml resources, I still have a method to use [Find usages:
// Select a resource, right-click it, and select [Find usages]
If there is a reference, you will see
If there is no reference, you will see the following prompt in the lower left corner:
Shortcut Key
Operation |
Mac |
Windows/Linux |
Search for references |
Option + F7 |
Alt + F7 |
If you are interested, follow my Blog. My column will continue to update the Android Studio tutorial and the NDK configuration and compilation at the 2015 I/O conference, I will share it with you all.
I also received an invitation from CSND lecturers. Later I will record these Android Studio tutorials as videos and publish them to the CSDN Institute.
/*** -------------- * Welcome to reprint | reprinted please note * -------------- * if it is helpful to you, please click | top | * -------------- * Please keep humble | you will go further * -------------- * @ author zsl * @ github https://github.com/yy1300326388 * @ blog http://blog.csdn.net/yy1300326388 */