2

I'm trying to run program using android ndk. Eclipse shows problem "Program "sh" not found in PATH C/C++ Problem". I've already made a reference to ndk folder in path. What is "sh"?

user3271322
  • 27
  • 1
  • 4

3 Answers3

3

I had the same error on Windows. Setting the correct path for Android NDK in the Eclipse Preferences->Android->NDK fixed it.

SMUsamaShah
  • 7,677
  • 22
  • 88
  • 131
2

In my case, the project works fine after removing the project from the workspace and import again. I don't know why:(

Yorung
  • 64
  • 5
1

I had this problem with NDK, probably you have spaces defining the path of your sdk.

Check if you have specified the NDK path as

C:\Program Files\Android\android-ndk

avoid the "spaces", so change to:

C:\Progra~1\Android\android-ndk

Read : The Android emulator is not starting, showing "invalid command-line parameter" (applies for SDK & NDK)

Community
  • 1
  • 1
Jorgesys
  • 124,308
  • 23
  • 334
  • 268