尝试在我的audiomanager类中加载libaudioclassifer.so
static {
System.loadLibrary("audioclassifier");
}
我得到了错误
FATAL EXCEPTION: main
Process: xx, PID: 21369
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/xx/lib/x86/libaudioclassifier.so" has unexpected e_machine: 40
at java.lang.Runtime.loadLibrary0(Runtime.java:989)
at java.lang.System.loadLibrary(System.java:1530)
at xx.AudioManager.<clinit>(AudioManager.java:63)
at xx.AudioLib.AudioService.startAudioManager(AudioService.java:69)
at xx.AudioService.onStartCommand(AudioService.java:113)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3326)
at android.app.ActivityThread.-wrap21(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1582)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
x86模拟器是否有问题,.so文件是否有问题?我从armeabi.jar文件中提取了.so文件,以便可以将其加载到x86上以测试其是否有效。我应该怎么做才能使其正常工作?