0

I am building a Android library(.AAR) which is consist of multiple packages. Is there any way to exclude some classes from been compiled to the library?

  • https://stackoverflow.com/questions/41060827/how-to-exclude-a-classes-from-being-kept-by-proguard ? – Lino Aug 15 '18 at 06:47

1 Answers1

1

Answer found.

sourceSets {
        main {
            java {
                exclude '**/className.java'
            }
        }
    }