java Android NDK 编译错误 NDK_PROJECT_PATH=null
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26182729/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android NDK Compile error NDK_PROJECT_PATH=null
提问by Alon
I tried run ijkplayer and I recieved this error.
我尝试运行 ijkplayer 并收到此错误。
C:\ndk\ndk-build.cmd NDK_PROJECT_PATH=null
I think is something with the build.gradle but I don't know what.
我认为是 build.gradle 的东西,但我不知道是什么。
My ndk directory is on c:\ndkand I have ndk 32bit.
我的 ndk 目录在c:\ndk 上,我有 32 位的 ndk。
I appreciate your help.
我感谢您的帮助。
Thanks.
谢谢。
采纳答案by ashoke
Your build (gradle ?) is not passing proper path to the root of your project to ndk-build.cmd
.
您的构建(gradle ?)没有将项目根目录的正确路径传递给ndk-build.cmd
.
You can run the ndk-build.cmd
from command line. Open a command prompt, cd
into your module folder (it should have jni
folder) , and run c:\ndk\ndk-build.cmd
it will use the current path as the NDK_PROJECT_PATH
您可以运行ndk-build.cmd
from 命令行。打开命令提示符,cd
进入您的模块文件夹(它应该有jni
文件夹),然后运行c:\ndk\ndk-build.cmd
它将使用当前路径作为NDK_PROJECT_PATH