Exclude my .apk release files

I have an application for Android Studio, which depends on the project of the android library. This android library project contains some of its own .so libraries, but I want some of these .so not to appear in my last apk.

How can i do this? I add this code to build.gradle of my application, but the files continue to appear:

packagingOptions { exclude 'lib/armeabi/a.so' } 

thanks

+5
source share
1 answer

It should work if you wrap packagingOptions in an android stanza as follows:

 android { packagingOptions { exclude 'lib/armeabi/a.so' } } 
0
source

Source: https://habr.com/ru/post/1232515/


All Articles