本文介绍了您的APP_BUILD_SCRIPT使用Android ndk-build指向未知文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在尝试编译Android NDK项目时收到以下错误:
I get the following error while trying to compile an Android NDK project:
ndk-build
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /home/lambergar/work/APIExample/jni/Android.mk
/home/lambergar/android/ndk/android-ndk-r5c/build/core/add-application.mk:116: *** Android NDK: Aborting... . Stop.
奇怪的是,未知文件"(Android.mk)存在于报告为无效的路径下.
The weird thing is, that the 'unknown file' (Android.mk) exists under the path reported as invalid.
推荐答案
我通过向项目中添加一个新版本来解决该问题,瞧,它可以工作.
I solved the problem by adding a new build to the project and voila, it works... Don't know what was the problem with the CLI build though.
这篇关于您的APP_BUILD_SCRIPT使用Android ndk-build指向未知文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!