There is a way ... but it's a simple hack. U can bind the armeabi folder, inside which there are XXXX.so files.
these are native codes, and @Scott Barta says that support is not supported in Android Gradle for native code.
So let's wrap it like our regular jar files. Step 1: create a folder and name it 'lib' Step 2: take the armeabi> xxxx.so files inside the lib folder. Setp 3: now the zip file is lib and name the zipped file as XXXXX.zip.
Now the project structure will be XXXX.zip-lib-armeabi-xxxx.so
Step 4. Copy the zip file to the libs folder of android studio. Step 5: Rename xxxx.zip to xxxx.jar Step 6: paste the code below depending on the gradle.
dependencies {compile fileTree (dir: 'libs', include: '* .jar')}
Now synchronize Gradle, and then run.
Note. These army men will work only if the processor of the emulator is armeabi. For Intel x86, you may need to create the "x86" folder inside the zip and paste the corresponding .so file into this folder.
It worked for me. try :)
Happy coding.
Minto source share