简体   繁体   English

Android NDK编译错误NDK_PROJECT_PATH = null

[英]Android NDK Compile error NDK_PROJECT_PATH=null

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:\\ndk and I have ndk 32bit. 我的ndk目录在c:\\ ndk上 ,我有ndk 32bit。

I appreciate your help. 我感谢您的帮助。

Thanks. 谢谢。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM