Android Studio中的NDK构建错误

时间:2015-12-23 06:04:55

标签: android android-ndk

当我在Android Studio中构建NDK Android项目时,出现此错误:

Information:Gradle tasks [:android:assembleDebug]
executing buildNative
executing cleanNative
:android:buildNative
Android NDK: WARNING:jni/Android.mk:mupdfcore: LOCAL_LDLIBS is always ignored for static libraries    
make.exe: Entering directory `F:/Android_Studio_Project/HelloToone/android'
[armeabi-v7a] Prebuilt       : libgs.so <= jni/
[armeabi-v7a] Install        : libgs.so => libs/armeabi-v7a/libgs.so
F:/ADT/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-strip:./libs/armeabi-v7a/libgs.so: File format not recognized
make.exe: *** [libs/armeabi-v7a/libgs.so] Error 1
make.exe: *** Deleting file `libs/armeabi-v7a/libgs.so'
make.exe: Leaving directory `F:/Android_Studio_Project/HelloToone/android'
:android:buildNative FAILED
Error:Execution failed for task ':android:buildNative'.
> Process 'command 'F:\ADT\sdk\ndk-bundle\ndk-build.cmd'' finished with non-zero exit value 2
Information:BUILD FAILED

我从http://ghostscript.com/~robin/libgs.so下载了libgs.so个文件并将其放入jni文件夹。 如何解决这个错误?请帮我。谢谢。

0 个答案:

没有答案