Android NDK 编译错误 NDK_PROJECT_PATH=null [英] Android NDK Compile error NDK_PROJECT_PATH=null

查看:36
本文介绍了Android NDK 编译错误 NDK_PROJECT_PATH=null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试运行 ijkplayer,但收到此错误.

I tried run ijkplayer and I recieved this error.

  C:\ndk\ndk-build.cmd NDK_PROJECT_PATH=null 

我认为 build.gradle 有问题,但我不知道是什么.

I think is something with the build.gradle but I don't know what.

我的 ndk 目录在 c:\ndk 上,我有 32 位的 ndk.

My ndk directory is on c:\ndk and I have ndk 32bit.

感谢您的帮助.

谢谢.

推荐答案

您的构建(gradle ?)没有将项目根目录的正确路径传递给 ndk-build.cmd.

Your build (gradle ?) is not passing proper path to the root of your project to ndk-build.cmd.

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

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

这篇关于Android NDK 编译错误 NDK_PROJECT_PATH=null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆