0

我正在尝试重建我的 Native android 项目,但是突然之间,ndk-build 决定它不想这样做,并且似乎对我生闷气。这是我的输出:

nathan@nathan-K52F:~/COMBAT/engine/android-build$ android update project -p . -t 1 -s
Updated project.properties
Updated local.properties
Updated file ./proguard-project.txt
nathan@nathan-K52F:~/COMBAT/engine/android-build$ cd jni && ndk-build
nathan@nathan-K52F:~/COMBAT/engine/android-build/jni$ ndk-build
nathan@nathan-K52F:~/COMBAT/engine/android-build/jni$ cd ../
nathan@nathan-K52F:~/COMBAT/engine/android-build$ ndk-build
nathan@nathan-K52F:~/COMBAT/engine/android-build$      //should be erroring here - yet nothing?

然而,它至少尝试构建另一个原生项目:

nathan@nathan-K52F:~/GamePlay/samples/browser/android/jni$ ndk-build
/home/nathan/android-ndk-r8e/build/core/add-application.mk:128: Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 9 in /home/nathan/GamePlay/samples/browser/android/AndroidManifest.xml    
Android NDK: ERROR:/home/nathan/GamePlay/samples/browser/android/jni/Android.mk:gameplay: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that /home/nathan/GamePlay/samples/browser/android/jni/../../../../gameplay/android/obj/local/armeabi/libgameplay.a exists  or that its path is correct   
/home/nathan/android-ndk-r8e/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.
nathan@nathan-K52F:~/GamePlay/samples/browser/android/jni$ 

顺便说一句,错误应该在那里。

我只是不知道为什么它不编译我想要编译的项目-我认为它不再喜欢我了:L

我在最新的 Ubuntu 操作系统上运行,带有 NDK r8 和 JDK 1.7

4

1 回答 1

0

我没有将新文件添加到要编译的 makefile 中。

于 2013-08-06T19:40:59.547 回答