-2

我试着用几天来解决。但它没有用。

在此处输入图像描述

以下是完整的错误日志:

02-19 09:41:31.239 17753-17753/com.superdata.cxim E/art: dlopen("/system/lib64/libdl.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "__cxa_finalize" referenced by "/system/lib64/libdl.so"...
02-19 09:41:31.317 17753-17753/com.superdata.cxim E/art: dlopen("/data/app/com.superdata.cxim-1/lib/arm64/libavutil.so", RTLD_LAZY) failed: dlopen failed: "/data/app/com.superdata.cxim-1/lib/arm64/libavutil.so" is 32-bit instead of 64-bit
02-19 09:41:31.359 17753-17753/com.superdata.cxim E/InputEventReceiver: Exception dispatching input event.
02-19 09:41:31.360 17753-17753/com.superdata.cxim E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
02-19 09:41:31.361 17753-17753/com.superdata.cxim E/MessageQueue-JNI: java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil
    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:309)
    at org.bytedeco.javacpp.Loader.load(Loader.java:390)
    at org.bytedeco.javacpp.Loader.load(Loader.java:358)
    at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1407)
    at com.superdata.cxim.ui.camera.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:252)
    at com.superdata.cxim.ui.camera.recorder.WXLikeVideoRecorder.initRecorder(WXLikeVideoRecorder.java:174)
    at com.superdata.cxim.ui.camera.recorder.WXLikeVideoRecorder.startRecording(WXLikeVideoRecorder.java:278)
    at com.superdata.cxim.ui.camera.main.NewRecordVideoActivity.startRecord(NewRecordVideoActivity.java:158)
    at com.superdata.cxim.ui.camera.main.NewRecordVideoActivity.onTouch(NewRecordVideoActivity.java:234)
    at android.view.View.dispatchTouchEvent(View.java:8656)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2523)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2114)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2511)
    at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1807)
    at android.app.Activity.dispatchTouchEvent(Activity.java:2841)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2468)
    at android.view.View.dispatchPointerEvent(View.java:8873)
    at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4831)
    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4689)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4188)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4241)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4207)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4344)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4215)
    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4401)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4188)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4241)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4207)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4215)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4188)
    at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6645)
    at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6619)
    at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6572)
    at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6812)
    at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    at android.os.MessageQueue.nativePollOnce(Native Method)
    at android.os.MessageQueue.next(MessageQueue.java:148)
    at android.os.Looper.loop(Looper.java:151)
4

3 回答 3

0

只能在 Solaris 上使用 64 位 Java vm 运行 32 位本机代码。

于 2017-04-07T09:58:07.103 回答
0

如果您使用一些本机库,您可以使用下面的代码使其在特定位置看起来。把它放在 build.gradle 文件的 defaultConfig 中。

ndk {
    abiFilters "armeabi-v7a", "x86", "armeabi", "mips"
}
于 2017-02-19T02:53:51.487 回答
0

只需在项目的 gradle 文件中编译这些行

compile(group: 'org.bytedeco', name: 'javacv-platform', version: '1.3'){
    exclude group: 'org.bytedeco.javacpp-presets'
}
compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3'
compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3', classifier: 'android-arm'
于 2017-06-07T16:55:34.690 回答