[ndk]Android NDK: Your APP_BUILD_SCRIPT points to an unknown file/Please define the NDK_PROJECT_PATH
2017-08-13 16:01
531 查看
NDK编译报错: Your APP_BUILD_SCRIPT points to an unknown file/Please define the NDK_PROJECT_PATH
这种报错原因是 ndk 认为该编译的路径下,不知道哪个是对的NDK_PROJECT_PATH, APP_BUILD_SCRIPT, NDK_APPLICATION_MK 是一个空的值,
Your APP_BUILD_SCRIPT points to an unknown file -》将ndk-build 的执行的路径改为项目的路径
那么还是会报Please define the NDK_PROJECT_PATH 异常,
解决方法
方法1
就是把这些文件放在一个jni目录下, 进入jni目录然后在编译
将 jni 的部分,包含android.mk 文件放在 jni 文件夹里面 记住 jni 文件夹,必须要有
然后ndk-build 等即可
方法2
一个就是制定上面三个变量的值, 如:我要编译我当前目录的源文件, 当然包含Android.mk 和Application.mk 文件, 可以使用这样的命令编译:
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./android.mk NDK_APPLICATION_MK=./Application.mk
相关文章推荐
- Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\android-ndk/jni /Android.mk
- Android_NDK问题:APP_BUILD_SCRIPT points to an unknown file: <project_path>/jni/Android.mk
- Package supports: Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk
- Android NDK: Your APP_BUILD_SCRIPT points to an unknown file
- Android NDK: Your APP_BUILD_SCRIPT points to an unknown file:
- Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk
- Android:Your APP_BUILD_SCRIPT points to an unknown file
- android NDK如何解决Please define the NDK_PROJECT_PATH variable to point to it
- Please define the NDK_PROJECT_PATH variable to point to it
- Please define the NDK_PROJECT_PATH variable to point to it
- 【转】Please define the NDK_PROJECT_PATH variable to point to it
- Please define the NDK_PROJECT_PATH variable to point to it
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- ruby之——安装gem提示:Please update your PATH to include build tools or download the DevKit
- 很恶心的一个问题,百度没找到You appear to have guava-jdk5 on your project buildScript or buildSrc classpath
- Your project path contains non-ASCII characters. This will most likely cause the build to fail on
- ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk
- RUBY Error: Please update your PATH to include build tools or download the DevKit
- Your project path contains non-ASCII characters. This will most likely cause the build to fail
- Your project path contains non - ASCII characters. This will most likely cause the build to fail on