I want to exclude a module/ Java class. so, It cannot exist in apk file. I tried the following. in app.gradle.
sourceSets {
main {
jniLibs.srcDirs = [‘libs’]
jni.srcDirs =
java{
exclude '**/SampleActivity.java'
}
}
}
Excluding is working fine, but facing import errors on the remaining classes. Please provide me a solution , what is the correct way to exclude a class or module. Thanks in Advance.