I
I
Igor2016-04-14 21:51:36
Android
Igor, 2016-04-14 21:51:36

How to exclude individual resources from being added to the APK?

How to exclude individual resources from being added to the APK? Yes, but without physically deleting files from the drawable-*hdpi folder.
Pictures will be used small ones from drawable-mdpi so shrinkResources true doesn't work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Chvalov, 2016-04-15
@Chvalov

It seems that you could specify it in Proguard, but you need to check it, since I haven’t collected anything for Android for a long time.
Here is what I found on the net: for Maven and Gradle link 1 and 2

D
Droid924, 2016-04-29
@Droid924

There is a block in build.gradle :

android {
    ...
    packagingOptions {
        exclude 'path/to/file'
    }
    ...
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question