我正在尝试重建我的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
答案 0 :(得分:0)
我没有将新文件添加到我的makefile中进行编译。