---------- Forwarded message ----------
From: Jonathan Pryor <jonpr...@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 <burhaneyubo...@gmail.com>


On Nov 25, 2014, at 7:17 AM, Burhan Eyuboglu <burhaneyubo...@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?
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to