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

  • Home
  • SEARCH
  • 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 9087369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:41:01+00:00 2026-06-16T21:41:01+00:00

I have an android project with java and native code. Everything works fine, till

  • 0

I have an android project with java and native code. Everything works fine, till today I just used eclipse to edit and build the java application, using ndk-build and ndk-gdb from command line, and managing/editing c++ sources outside of eclipse.

Now that I installed the adt ndk plugins, and that I can correctly build my native libs in eclipse, I am thinking about a way to add the c++ sources to the android project, so that I can browse them, perform searches and code completion in eclipse. I have A LOT of sources that are not in the jni directory of the android project, and I can’t move them.

Then I saw in the project properties – under “C/C++ General -> Paths and Symbols” – an “Include” tab listing the include directories (I guess they are extracted from android.mk), and in the “Source Location Tab” I added a link to the “external” sources directory, naming it NativeSrc. I can indeed browse the sources in the project navigator, but when I open them they appear full of errors of the “Field XXX could not be resolved” kind.

I think there’s something else I’m missing, maybe obvious but I can’t see it. Or maybe my approach is totally wrong. Any suggestion?

  • 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-06-16T21:41:02+00:00Added an answer on June 16, 2026 at 9:41 pm

    Oh well, I got it. I had to right-click on the project in the navigator and select

    Index -> Rebuild
    

    in the context menu, then wait for a few time and, from the same menu, select

    Index -> Freshen All Files 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android (Java) project that includes some native C/C++ code and I
I have a project in Eclipse which mixes native and Java code using CDT
I have an Android java library that uses some native code. I have added
I have an Android project (targeting Android 1.6 and up) which includes native code
I have an Android project I've inherited from another developer. The original code was
I have an Android project and Eclipse is telling me my project has an
I have an Android project in eclipse IDE which was working. After some imports
I have 1 android app project and 1 widget project, they all work fine.
I have an Android project that built and ran perfectly before Eclipse crashed and
I have an Android project with a Java base Activity, Java JNI interface class,

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.