android static library bad ELF number
问题 I have build a static library with the Android ndk. I now try to use this library in another Android project //in mainActivity static { System.loadLibrary("MILlib"); } I got the following error when building the test project 02 17:07:24.890 2785-2785/com.MIL.testlib E/AndroidRuntime: FATAL EXCEPTION: main Process: com.MIL.testlib, PID: 2785 java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.MIL.testlib-1/lib/arm/libMILlib.so" has bad ELF magic at java.lang.Runtime.loadLibrary