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

查看:246
本文介绍了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 上,我有ndk 32位。

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:\\\
dk\\\
dk-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天全站免登陆