Adding External Library to Android CDT

I am using Android ADT package for Linux with CDT 8.0.2 support. + NDK. I need to add an external library. For example, I checked on the Eclipse forum:

linking-external-lib

The problem is that it looks like Android CDT doesn't have the same settings. None of the three solutions can be applied.

Has anyone found a way to add an external .so library to eclipse with CDT?

Before I added Native spport, I used a .so file in the libs folder. Now the libs folder is cleared every time I create a project. So I need to put it somewhere else.

+3


source to share


1 answer


I managed to do it by adding the following lines to Android.mk

includes $ (CLEAR_VARS)

LOCAL_MODULE: = Library_name



LOCAL_SRC_FILES: = path to lib / libname.so

includes $ (PREBUILT_SHARED_LIBRARY)

0


source







All Articles