Android的NDK:你APP_BUILD_SCRIPT指向一个未知文件文件、Android、NDK、APP_BUILD_SCRIPT

2023-09-06 01:38:35 作者:长风阑珊意逍遥△

我收到以下错误,而试图编译一个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.

推荐答案

我通过增加一个新构建的项目解决了这个问题,瞧,它的工作原理......不知道什么是与CLI的问题,虽然建设

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.

 
精彩推荐