Your APP_BUILD_SCRIPT points to an unknown file using Android ndk-build

后端 未结 16 907
半阙折子戏
半阙折子戏 2020-12-01 15:45

I get the following error while trying to compile an Android NDK project:

ndk-build 
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /home/lamb         


        
16条回答
  •  旧时难觅i
    2020-12-01 16:24

    Details of the problem:

    Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /jni/Android.mk ...: *** Android NDK: Aborting... . Stop. Usually this is not the path of your project, so the reason for this error is that ndk could not find the correct Android.mk file path. solution:

    Add NDK_PROJECT_PATH to "./" in the environment variable, the purpose is to tell the NDK that the jni currently to be compiled is located in the directory where the project is located.

提交回复
热议问题