Eclipse error: wrong path for ndk?

I want to integrate some c-code with Android, since the first step is to specify the NDK path in the Native Development node. But when I specify the NDK path, it gives an error. Invalid path for NDK I googled, but could not find any solution. I missed some step.

The SDK and NDK are in the same folder, and the SDK path works fine.

Please, help

I have installed

  • make-3.81
  • nawk-2007.10.23-installation
  • Cygwin
  • ADT-17.0.0
  • Sequoyah
  • android-ndk-r7b-windows.zip (extracted) enter image description here

EDIT:

I just check the link and find out that it could be a GCC problem. How can I check this if GCC is a problem or not, or How to check if GCC is installed or not?

+6
source share
9 answers

Mmm ... a strange mistake. Keep in mind that to use the NDK, the SDK should work perfectly before starting with the NDK, said that I suggest you try the following:

1- Make sure you have the prerequisites:

  • All development platforms require GNU Make 3.81 or later. Earlier versions of GNU Make may work, but have not been tested.
  • The latest awk version (either GNU Awk or Nawk) is also required.
  • Windows requires Cygwin 1.7 or higher. NDK will not work with Cygwin 1.5 installations.

2- Start from scratch by removing any NDK links, such as eclipse settings, paths, folders, zip codes, etc.

3- Make sure you have updated the latest versions of the Android SDK and ADT Tools. Use the Help-> Check for Updates menu in ECLIPSE, and then make sure that you have everything you need in the Android SDK Manager.

4- I see "D: /" in your question, so you are using a Windows computer ... it must be Windows XP (32-bit) or Vista (32-bit or 64-bit). Be sure to get the version of Windows (http://dl.google.com/android/ndk/android-ndk-r7b-windows.zip), and when unpacking this ndk rename the folder to "ndk". You can place it next to the SDK folder, it does not matter.

5- Open Eclipse and give it a path to the NDK and see what happens.

Good luck

+6
source

I highly recommended resolving this "Invalid Path for Android SDK" problem, but it was finally resolved. Here's how to solve it. My system specifications: P4 3.2 GHz, Windows 7 32-bit, Eclipse Standard Edition 4.3 (Kepler). Other supporting programs: MinGW with GNU is 3.81.

Problem (first the problem I encountered, and then the solution): I downloaded the latest version of Android NDK from the site "developer.android.com/sdk/ndk/index.html", which was "android-ndk-r9-windows- x86.zip ". Then I extracted it to the C: \ directory, after which I added the value "; C: \ android-ndk-r9" to my PATH variable. Then I installed "Support for Android Sequoyah Android native code" using the option "install new software" eclipse (Help ➤ Install a new type of software "Indigo - http://download.eclipse.org/releases/indigo " to work with field ➤ go to the category Mobile and device development and select support for Android native code (Sequoyah Android). Then I went to the eclipse menu "Window ➤ Settings ➤ Android ➤" Native development "and entered" C: \ android-ndk-r9 "in the location NDK and got the error "Invalid path for NDK".

Solution: I searched exhaustively on the Internet and tried another solution, but the solution worked for me:

I downloaded an older version of NDK (download link: "dl.google.com/android/ndk/android-ndk-r7c-windows.zip") and checked out the C: \ directory using winrar and updated PATH to indicate to the new version of NdK 7c. When I enter the path that he has taken now. The error did not appear. The problem in Sequoyah does not accept the new version, because it has not been updated since 2011 (I'm not sure) Note1: for download to Linux users, the link: "dl.google.com/android/ndk/android-ndk-r7b-darwin-x86. tar.bz2 "Note2: you can change the version in the link according to your requirement, for example," dl.google.com/android/ndk/android-ndk-r4bc-windows.zip "to download version 4b. Thanks.

+5
source

Try creating a new system variable called "NDK" and set its value in the NDK path.

+3
source

Check your path to the NDK - this has repeatedly been a problem for me, at least with the SDK. (Not NDK in my instance) I know that, for example, at the moment my path is NDK ~ / android-ndk-r6 / android-ndk-r6 /

In addition, to install gcc on windows, you must install Cygwin or such a compatible gcc installation for windows. (The docs here say this is required, but I think I might have heard that people use a slightly different implementation.) Cygwin works well for me, but you may need to specify gcc, make, etc. in the installer as packages that will be downloaded and configured on your computer, so read your installation settings carefully. If you find that you have more packages that need to be installed, you can run setup.exe again and install them in place.

In addition, here (at the bottom of the page) you can find the installation guide for the NDK if you run into additional problems.

+3
source

We hope that there is no file in your ndk folder so that it will not be able to identify the ndk folder. Download ndk and download it, otherwise update your own development plugin ...

+2
source

You said that the SDK and NDK are in the same folder. This may be a conflict with the route. Try the following:

  • Remove NDK
  • Reinstall NDK to folder D: \ ecpspace \ NDK \ android-ndk-r7b
  • Create a new PATH on enviroment var
  • Reboot the computer.

In linux, work for me, I had 2 ndks installed on different routes, and when I used eclipse, it compiled using another and didn’t work the way I wanted.

+2
source

This may sound silly, but have you downloaded the correct package? I had the same problem on linux until I realized that I was trying to use the version of Windows (I downloaded it earlier when I tried to install it on another computer with cygwin). I downloaded the linux package and it worked.

+2
source

I only did this for a couple of days, but in my brief experience NDK and eclipse do not play well together. I would suggest going to the command line for the NDK part of the project. Some good tutorials can be found at:

http://www.cmumobileapps.com/2011/08/31/compiling-open-source-libraries-with-android-ndk-part-1/

http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/

+2
source

I have a similar error (Eclipse Version: Indigo Service Release 2, Build id: 20120216-1857). The main problem was the Sequoya plugin. The problem disappears when I upgrade Sequoya to the latest version.

+1
source

Source: https://habr.com/ru/post/912013/


All Articles