具体错误
D:\Nanjing-SVN\USBCamera2\libusb4javajni\src\main\jni>D:\SOFTWARES\DEVELOP\andro id-ndk-r16b/ndk-build.cmd Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersi on 1 in D:/Nanjing-SVN/USBCamera2/libusb4javajni/src/main/AndroidManifest.xml. N DK binaries will *not* be comptible with devices older than android-14. See http s://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information. Android NDK: NDK Application 'local' targets unknown ABI(s): arm64-v8 Android NDK: Please fix the APP_ABI definition in D:/Nanjing-SVN/USBCamera2/libu sb4javajni/src/main/jni/Application.mk D:/SOFTWARES/DEVELOP/android-ndk-r16b/build//../build/core/setup-app.mk:75: *** Android NDK: Aborting . Stop.
解决办法
找到JNI目录下的Application.mk,如下修改:
# armeabi arm64-v8a APP_ABI := armeabi-v7a arm64-v8a
具体使用哪个指令集,看自己情况。如果不确定,就多加点