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

后端 未结 16 883
半阙折子戏
半阙折子戏 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条回答
  •  眼角桃花
    2020-12-01 16:41

    You need to set the env variable NDK_PROJECT_PATH to the root of the project you are building. The root of your NDK project will typically contain the ./jni directory.

    export NDK_PROJECT_PATH={root_of_project}
    

    If your JNI code is in a library, then set NDK_PROJECT_PATH to the library project.

提交回复
热议问题