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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 09:27:38  来源:igfitidea点击:

Android NDK Compile error NDK_PROJECT_PATH=null

javaandroidandroid-ndkandroid-studio

提问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.cmdfrom command line. Open a command prompt, cdinto your module folder (it should have jnifolder) , and run c:\ndk\ndk-build.cmdit will use the current path as the NDK_PROJECT_PATH

您可以运行ndk-build.cmdfrom 命令行。打开命令提示符,cd进入您的模块文件夹(它应该有jni文件夹),然后运行c:\ndk\ndk-build.cmd它将使用当前路径作为NDK_PROJECT_PATH