Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse : Where to put NDK reference? Native Development is missing?

I have to integrate some c code with my Android app. I did some R&D and came to know that I can do this through NDK (Native Development Kit).

I downloaded NDK and read some article and watched videos to Configure NDK but Android node in Preferences does not show Native Development node to set NDK reference.

Am I missing some step or any other problem... please help

see my preference Window.

enter image description here

like image 436
Azhar Avatar asked Mar 28 '12 13:03

Azhar


2 Answers

While installing the ADT plugin as:

  1. Help-> install new software.
  2. Click Add
  3. Name - ADT

    Repo - https://dl-ssl.google.com/android/eclipse/ or find the link in here

    http://developer.android.com/sdk/installing/installing-adt.html

  4. This is important. Select both Developers tools and NDK plugins and continue installation.

There you go. You can find the Option in Windows->Preferences->Android->NDK. Set the path accordingly

like image 118
Nrupatunga Avatar answered Oct 23 '22 19:10

Nrupatunga


I followed this guide but when I installed the Sequoya packages it didn't work --no new options appeared on the Preferences or contextual menu.

I work over Ubuntu 10.10 so I tried adding these lines to .bashrc

# Android definitions
export PATH=$PATH:$HOME/android-ndk-r7c
export ANDROID_NDK_ROOT=$HOME/android-ndk-r7c
export NDK=$HOME/android-ndk-r7c

I re-started Eclipse and reinstalled the Sequoyah packages on Eclipse once again --which I never uninstalled, so that was a little bit weird. But it worked.

Perhaps if you have Windows you can try adding those as Enviroment Variables.

like image 1
Marina.Eariel Avatar answered Oct 23 '22 20:10

Marina.Eariel