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

后端 未结 16 905
半阙折子戏
半阙折子戏 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
    慢半拍i (楼主)
    2020-12-01 16:23

    I just installed Android-NDK and tried "ndk-build". I had exactly the same error. Here is how I beat it.

    bash
    
    export NDK_PROJECT_PATH={root_of_android_ndk}/samples/hello-jni
    
    ./ndk-build
    

    This worked.

提交回复
热议问题