Hi,

Do you have any further information than "dlopen failed" ?
In any case, you can use readelf or my 
application: 
https://play.google.com/store/apps/details?id=com.xh.nativelibsmonitor.app&hl=en
to check if the .so that is getting packaged/installed is well formed, for 
x86 architecture, and that it has no non-ndk dependencies.

If your lib is compiled for arm but is inside your x86 folder, you would 
get a dlopen failure on x86 emulators as well as x86 devices running 
lollipop, and it would still work on x86 devices running Jelly Bean.

Regards,
Xavier Hallade.

On Monday, December 15, 2014 9:38:32 PM UTC+1, Dan O'Neill wrote:
>
>  Did some further testing on an x86 device and found the following 
> results:  
>
> > x86 *.so bundled in AAR is working on Intel x86 device (API 17)
> > x86 *.so bundled in AAR is fails as described in this thread on x86 
> emulator (API 21 & API 17)
>
> I am going to try some other devices, but it seems the issue is with the 
> x86 emulator.  Can anybody else confirm this?  
>
> Regards
> -- Dan
>
>
> On 12/10/14, 3:26 PM, Xavier Ducrohet wrote:
>  
> Look inside the APK and see how the .so are packaged. We don't do anything 
> special for x86 libraries, we just package whatever is there. 
>
>  From the first email, it just looks like the .so is broken?
>  
> On Wed, Dec 10, 2014 at 12:26 PM, jdONeill gMail <jdonei...@gmail.com 
> <javascript:>> wrote:
>
>>  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+u...@googlegroups.com <javascript:>.
>> 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+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>  
>  
>
>
>  -- 
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks!
>  -- 
> 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+u...@googlegroups.com <javascript:>.
> 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