Android NDK ndk-build helloJni错误

时间:2014-12-05 09:32:32

标签: java android eclipse android-ndk

我正在尝试运行HelloJni程序表单NDK样本。我正在使用eclipse juno。 Alos没有生成“.so”文件。但是在ndk-build项目中,我在控制台中收到以下消息:

**** Build of configuration Default for project HelloJni ****

/home/ethics-14/android-ndk/ndk-build all 
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 10 in ./AndroidManifest.xml    
[arm64-v8a] Gdbserver      : [aarch64-linux-android-4.9] libs/arm64-v8a/gdbserver
[arm64-v8a] Gdbsetup       : libs/arm64-v8a/gdb.setup
[x86_64] Gdbserver      : [x86_64-4.9] libs/x86_64/gdbserver
[x86_64] Gdbsetup       : libs/x86_64/gdb.setup
[mips64] Gdbserver      : [mips64el-linux-android-4.9] libs/mips64/gdbserver
[mips64] Gdbsetup       : libs/mips64/gdb.setup
[armeabi-v7a] Gdbserver      : [arm-linux-androideabi-4.8] libs/armeabi-v7a/gdbserver
[armeabi-v7a] Gdbsetup       : libs/armeabi-v7a/gdb.setup
[armeabi] Gdbserver      : [arm-linux-androideabi-4.8] libs/armeabi/gdbserver
[armeabi] Gdbsetup       : libs/armeabi/gdb.setup
[x86] Gdbserver      : [x86-4.8] libs/x86/gdbserver
[x86] Gdbsetup       : libs/x86/gdb.setup
[mips] Gdbserver      : [mipsel-linux-android-4.8] libs/mips/gdbserver
[mips] Gdbsetup       : libs/mips/gdb.setup
[arm64-v8a] Compile        : hello-jni <= hello-jni.c
[arm64-v8a] SharedLibrary  : libhello-jni.so
[arm64-v8a] Install        : libhello-jni.so => libs/arm64-v8a/libhello-jni.so
install: cannot stat `./obj/local/arm64-v8a/libhello-jni.so': No such file or directory
make: *** [libs/arm64-v8a/libhello-jni.so] Error 1

1 个答案:

答案 0 :(得分:0)

您似乎将Android-19用作Android-10设备的运行时。

APP_PLATFORM := android-10放入Application.mk文件中。