Make error while trying to build NDK app

不打扰是莪最后的温柔 提交于 2019-12-24 19:22:25

问题


I'm new to Android programming and NDK, so i've followed this tutorial: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ to install and config cygwin and NDK. The problem appears when I try to execute ndk-build command. It displays the following error message:

$ $NDK/ndk-build
Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersion 3in ./AndroidManifest.xml
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
install: nie można wykonać stat na `/cygdrive/d/Programowanie/Tools/ADT/NDK/prebuilt/android-arm/gdbserver/gdbserver': No such file or directory
/cygdrive/d/Programowanie/Tools/ADT/NDK/build/core/setup-toolchain.mk:155: polecenia dla obiektu 'libs/armeabi/gdbserver' nie powiodły się
make: *** [libs/armeabi/gdbserver] Błąd 1

Error messages are written in polish so here's my translation, however I'm not sure whether it's fully correct:

$ $NDK/ndk-build
Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersion 3in ./AndroidManifest.xml
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
install: Cannot execute stat on `/cygdrive/d/Programowanie/Tools/ADT/NDK/prebuilt/android-arm/gdbserver/gdbserver': No such file or directory
/cygdrive/d/Programowanie/Tools/ADT/NDK/build/core/setup-toolchain.mk:155: commands for object 'libs/armeabi/gdbserver' didn't succeed.
make: *** [libs/armeabi/gdbserver] Error 1

I honestly have no idea what could have caused such an error, so I'm counting that You can help me anyhow.

Thanks :-)


回答1:


Modern versions of NDK do not need cygwin. Try to run you build from normal cmd prompt. To be on the safe side, remove cygwin\bin from PATH.




回答2:


I have fixed my issue with NDK by downloading it again and reinstalling. It seems like I haven't downloaded entire NDK package, and that it caused the problem. Sorry for trouble, I should have checked whether reinstall could help in this case on the beginning, but this idea must have slept my mind.

Thanks for letting me know that I don't need cygwin for NDK anymore :-)

Best regards, Buyuk.



来源:https://stackoverflow.com/questions/19527874/make-error-while-trying-to-build-ndk-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!