美文网首页
解决 NDK can't find the applicatio

解决 NDK can't find the applicatio

作者: 这就是昵称 | 来源:发表于2019-06-13 12:02 被阅读0次

解决方法 1

直接将 NDK 工具包拷贝到项目的对应目录下。

解决方法 2

macOS 上遇到问题 “Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. ”,需要设置3项参数即可解决问题。

NDK_PROJECT_PATH - the location of your project
NDK_APPLICATION_MK - the path of the Application.mk file
APP_BUILD_SCRIPT - the path to the Android.mk file

具体操作步骤如下:

第一步:

在终端执行命令 ndk-build NDK_PROJECT_PATH=/path/to/proj NDK_APPLICATION_MK=/path/to/Application.mk

备注:路径 /path/to/proj,/path/to/Application.mk 根据文件所在的实际位置设置。

第二步:

在 Application.mk 里添加 APP_BUILD_SCRIPT := /path/to/Android.mk

参考文章:NDK can't find the application directory

相关文章

网友评论

      本文标题:解决 NDK can't find the applicatio

      本文链接:https://www.haomeiwen.com/subject/zubjfctx.html