Therefore, I want to include all files and subdirectories in the flavors file structure. What I'm doing here includes all the jar and so files in the libs folder, but I also want to include directories.
I tried turning it on include ['*'], but that didn't work. I also looked back a little at the answer, but walked over shortly. What is the correct way to accomplish this?
dependencies {
//format for including lib files for all flavors
compile fileTree(dir: 'libs', include: ['*.jar'])
//format for including all jars and so in pdf flavor
//pdfCompile fileTree(dir: 'libs', include: ['*.jar'])
pdfCompile fileTree(dir: 'src/pdf/libs', include: ['*.jar','*.so'])
}
When the application starts, the following exception tells me that not all .so files are included.
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.company.appname-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libPDFNetC-v7a.so"
Edit: Below is my file structure. FYI: src is a child of my module and is a brother of libs.
