So I connected a library in the city which, as I understood from the description, will delete everything that is not used in the project from my apk file.
I added such lines
buildTypes { release { shrinkResources true minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } But the getDefaultProguardFile method underlines and writes that it cannot recognize it ... I googled and realized that this problem exists ...
I tried the method that is recommended
"File" -> "Invalidate Caches..." But for me it did not work. I understand that now proguard does not work at all ...
Tell me what to do to make it work correctly?
If by the way do so
buildTypes { release { shrinkResources true minifyEnabled true // proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), // 'proguard-rules.pro' proguardFiles 'proguard-rules.pro' } } It does not emphasize anything, but how, in this case, does it work or not?
apkfile size be smaller? - Aleksey TimoshchenkoDexplorerdecompilerDexploreropen my application, and there are no classes open at all, onlyAppInfoalthough I do not have this class ... A manifest is available anddrawableresources ... What can this mean? I understand that this is just theproguardsettingsproguardlimit access tojavafiles? - Aleksey Timoshchenko