[Mono-dev] Fwd: Using .so file in Android Library Project and then using it in an Android App

Burhan Eyuboglu burhaneyuboglu at gmail.com
Wed Nov 26 10:28:11 UTC 2014


---------- Forwarded message ----------
From: Jonathan Pryor <jonpryor at vt.edu>
Date: 2014-11-25 17:47 GMT+02:00
Subject: Re: [Mono-dev] Using .so file in Android Library Project and then
using it in an Android App
To: Burhan Eyuboglu <burhaneyuboglu at gmail.com>


On Nov 25, 2014, at 7:17 AM, Burhan Eyuboglu <burhaneyuboglu at gmail.com>
wrote:
> I was trying to import with wrong name : "cylibusb". My library's name is
libcyusb.so.
> You said that libcyusb.so should be in the .apk files in the previous
mails, however I open the apk files (armeabi-v7a) and copy the libcyusb.so
into them and run the application,then it gives same error and when I look
at apk files after runining, there is no libcyusb.so in them.
>
> How can I put libcyusb.so to the lib/armeabi-v7a?

You need to add libcyusb.so to your project with a Build action of
AndroidNativeLibrary.

When adding libcyusb.so to your project, it must be located in a directory
that matches the ABI, e.g. you should have a
native-libs\armeabi-v7a\libcyusb.so file, and add that file to your project
with a Build action of AndroidNativeLibrary.

 - Jon


I need .so file with AndroidLibraryProject not with
AndroidApplicationProject, and in the AndroidLibraryProject, there is no
lib or lib/armeabi-v7a folder. Where can I put libcyusb.so?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141126/b7bc66b0/attachment.html>


More information about the Mono-devel-list mailing list