There are 5 libraries. All of them are connected via Gradle. Every lib has support.v7 and support.design.

Is there any way to disable them, and leave only one. And because of them, the size of the apk does not weigh 3 megabytes, but 6.

    1 answer 1

    The APK libraries are not duplicated by default . Even more, gradle will not be able to build an APK if it contains duplicate classes. So the problem you have is definitely not in duplicate libraries. Open the APK as a normal archive, classes.dex from there, decompile, look, which takes a lot of space. And also bring your proguard config to the question.

    • What are you saying. Actually, ProGuard has a function to skip duplicate classes. And if he misses, then he ignores them during the check. And when compiling used 2 classes of the same. Because of which the file size increases - Andro
    • @xTIGRx, what's the function? - Vladyslav Matviienko
    • exclude, can be specified in the dependes section. Where are added links to Tipo. compile ''. It would be better not to use them. But I tested it and she just skips them during the check. - Andro
    • @xTIGRx Here is the official reference of all ProGuard methods, and exclude there is no proguard.sourceforge.net/manual/refcard.html - Vladyslav Matviienko
    • I use ProGuard 5.2 because 4.7 does not plow from java 8. And how then does the exclude work for me?) - Andro