Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7015691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:41:07+00:00 2026-05-27T22:41:07+00:00

I have a project in Eclipse which mixes native and Java code using CDT

  • 0

I have a project in Eclipse which mixes native and Java code using CDT and ADT. It is really simple – demo project, just as in the android-ndk-r7/ samples/hello-jni

My Android.mk (in the /jni folder) is:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_LDLIBS    := -llog

LOCAL_MODULE    := hlsdrm
LOCAL_SRC_FILES := hlsdrm.cpp

include $(BUILD_SHARED_LIBRARY)

Everything compiles fine, I can load hlsdrm library by

System.loadLibrary("hlsdrm"); 

and call the native functions. But where is the library file placed? There is no libhlsdrm.so shared library in any of the project folders. As I could read, it should create a folder “libs” and place the resulting library in it.

Also, when I try to list libraries which is used by the application process by calling:

PackageManager pm = getPackageManager();
String applicationPackage = this.getApplicationInfo().packageName;
ApplicationInfo ai = pm.getApplicationInfo(applicationPackage, PackageManager.GET_SHARED_LIBRARY_FILES);
String[] soFiles = ai.sharedLibraryFiles;

then the soFiles variable is empty…
I have tried to specify the library by uses-library value in the application section of the manifest, but after then Android OS refuses to install that application and shows INSTALL_FAILED_MISSING_SHARED_LIBRARY error.

Can anybody explain me how can I get my shared library – the physical .so file?

Why the sharedLibraryFiles is empty even though the library loads and the native method can be called?

How can I install the application that requires custom shared library?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:41:07+00:00Added an answer on May 27, 2026 at 10:41 pm

    First of all, you should create libs folder and set up your project.

    Refer to following article to do that:

    http://maxters.net/2011/02/android-ndk-builder-for-eclipse-in-windows/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a java project in eclipse which are using tomcat. This project has
I am using Eclipse Indigo RC4 with EGit (bundled). I have a project which
I have a Eclipse Dynamic Web Project which host a simple servlet and runs
So I have a Java Project in Eclipse for which I can generate a
I have an eclipse plugin project which dependes on java project in my eclipse.
I have findbugs plugin for eclipse which when run on my project will show
I have a Java project in Eclipse with ~10 packages and ~10 class files
Have anyone successfully managed to setup a combined Java/C++ project for Eclipse? What I
I created a Java Project in Eclipse using the Web services Top down approach
I have a source code of an OpenSource project which I get from SVN.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.