I have confirmed a couple of things: 

1. Adding /src/main/jniLibs/x86/<native>.so causes errors when building with gradle and the AAR bundle.  It detects the presence of both libs. 
2. Removing the AAR bundle and adding /src/main/jniLibs/x86/<native>.so and all dependency jars in libs/ folder at root of project works on x86 emulator. 

Can anyone confirm support for x86 native libs bundled in AAR?  It would seem it is not supported. 

Regards
-- Dan


On 12/9/14, 4:33 PM, Dan O'Neill wrote:
I am bundling native libs in an AAR bundle under the '/jni/<abi>/*.so' location.  The ABI native libs work but when running on x86 emulator the app with AAR dependency crashes with the following cause:  

Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/<package>.helloworld-1/lib/x86/<native>.so"

The native libs in the AAR look like this: 

/jni/armeabi-v7a/<native>.so
/jni/armeabi/<native>.so
/jni/x86/<native>.so

What am I missing?  
--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to