UnsatisfiedLinkError: Couldn't load game (eclipse on window)

eclipse on window (use for packaging only)

  1. open a terminal in administrator mode
  2. use : create-android-project.bat
  3. start cygwin
  4. use : build_native.sh
  5. add new project: File/New Project/ in dialog use “Android from existing code” browse and select project
  6. select the project on the tree
  7. click on run button
    error
    09-18 10:58:23.440: E/AndroidRuntime(8984): Caused by: java.lang.UnsatisfiedLinkError: Couldn’t load game: findLibrary returned null

Why is this happening?
This question is been asked over and over again but there is no answers.

There no library files name game anywhere. Should I create one?

Andre

There is a lib and it is in

.android\obj\local\armeabi\libgame.so
and
.android\libs\armeabi\libgame.so

The problem was multiple.
In my case cygwin did not report the errors but only log them in make.log.
and the real problem was that libgnustl_static.a was not readable.

the fix:

reinstall android-ndk-r8

still libgnustl_static.a was not readable.

chmod -R 777 /cygdrive/e/cocos2d-x/ (yes I run as an administrator but still I had to do this)

compile and run in android (not the emulator)

So here you are always have to post a question before you find the answer.
Good luck
Andre