8***@qq.com
8***@qq.com
  • 发布:2021-02-22 11:41
  • 更新:2021-06-24 20:22
  • 阅读:1582

android 离线包 视频不能播放

分类:uni-app

/J4A: J4ALoader: OK: 'android.os.Build$VERSION' loaded
J4ALoader: OK: 'android.os.Build' loaded
J4ALoader: OK: 'java.nio.Buffer' loaded
J4ALoader: OK: 'java.nio.ByteBuffer' loaded
J4ALoader: OK: 'java.util.ArrayList' loaded
I/J4A: API-Level: 29
D/J4A: J4ALoader: OK: 'android.media.AudioTrack' loaded
J4ALoader: OK: 'android.media.MediaCodec$BufferInfo' loaded
J4ALoader: OK: 'android.media.MediaCodec' loaded
J4ALoader: OK: 'android.media.MediaFormat' loaded
J4ALoader: OK: 'android.media.PlaybackParams' loaded
J4ALoader: OK: 'android.os.Bundle' loaded
W/System.err: java.lang.ClassNotFoundException: Didn't find class "tv.danmaku.ijk.media.player.misc.IMediaDataSource" on path: DexPathList[[dex file "InMemoryDexFile[cookie=[0, 3987964528]]", zip file "/data/app/com.HBuilder.UniPlugin-eM4J9Qv1OWTMg4mVakOvRg==/base.apk"],nativeLibraryDirectories=[/data/app/com.HBuilder.UniPlugin-eM4J9Qv1OWTMg4mVakOvRg==/lib/arm, /data/app/com.HBuilder.UniPlugin-eM4J9Qv1OWTMg4mVakOvRg==/base.apk!/lib/armeabi-v7a, /system/lib, /hw_product/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.nativeLoad(Runtime.java:1115)
at java.lang.Runtime.loadLibrary0(Runtime.java:1069)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1668)
at tv.danmaku.ijk.media.player.IjkMediaPlayer$a.loadLibrary(IjkMediaPlayer.java:178)
at tv.danmaku.ijk.media.player.IjkMediaPlayer.U(IjkMediaPlayer.java:190)
at io.dcloud.media.video.ijkplayer.media.IjkPlayerView._initMediaPlayer(IjkPlayerView.java:327)
at io.dcloud.media.video.ijkplayer.media.IjkPlayerView.init(IjkPlayerView.java:481)
at io.dcloud.media.video.ijkplayer.VideoPlayerView.<init>(VideoPlayerView.java:51)
at io.dcloud.media.video.DHVideoFrameItem.<init>(DHVideoFrameItem.java:62)
at io.dcloud.media.video.VideoPlayerMgr.createVideoPlayer(VideoPlayerMgr.java:62)
at io.dcloud.media.MediaFeatureImpl.VideoPlayer(MediaFeatureImpl.java:42)
at java.lang.reflect.Method.invoke(Native Method)
at io.dcloud.common.DHInterface.StandardFeature.executeAction(:4)
at io.dcloud.common.DHInterface.StandardFeature.execute(:1)
at io.dcloud.h.b.a(:144)
W/System.err: at io.dcloud.h.b.b(:3)
at io.dcloud.h.b.processEvent(:144)
at io.dcloud.f.b.b.dispatchEvent(:22)
at io.dcloud.common.core.ui.m.processEvent(:2)
at io.dcloud.common.core.ui.i.exec(:10)
at io.dcloud.common.core.ui.i$a.execute(:5)
at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(:3)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8347)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
E/J4A: J4A_FindClass__catchAll: failed
J4A_FindClassasGlobalRefcatchAll: failed: tv/danmaku/ijk/media/player/misc/IMediaDataSource
W/System.err: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at io.dcloud.common.DHInterface.StandardFeature.executeAction(:4)
at io.dcloud.common.DHInterface.StandardFeature.execute(:1)
at io.dcloud.h.b.a(:144)
at io.dcloud.h.b.b(:3)
at io.dcloud.h.b.processEvent(:144)
at io.dcloud.f.b.b.dispatchEvent(:22)
at io.dcloud.common.core.ui.m.processEvent(:2)
at io.dcloud.common.core.ui.i.exec(:10)
at io.dcloud.common.core.ui.i$a.execute(:5)
at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(:3)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8347)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
W/System.err: Caused by: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.HBuilder.UniPlugin-eM4J9Qv1OWTMg4mVakOvRg==/lib/arm/libijksdl.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1668)
at tv.danmaku.ijk.media.player.IjkMediaPlayer$a.loadLibrary(IjkMediaPlayer.java:178)
at tv.danmaku.ijk.media.player.IjkMediaPlayer.U(IjkMediaPlayer.java:190)
at io.dcloud.media.video.ijkplayer.media.IjkPlayerView._initMediaPlayer(IjkPlayerView.java:327)
at io.dcloud.media.video.ijkplayer.media.IjkPlayerView.init(IjkPlayerView.java:481)
at io.dcloud.media.video.ijkplayer.VideoPlayerView.<init>(VideoPlayerView.java:51)
at io.dcloud.media.video.DHVideoFrameItem.<init>(DHVideoFrameItem.java:62)
at io.dcloud.media.video.VideoPlayerMgr.createVideoPlayer(VideoPlayerMgr.java:62)
at io.dcloud.media.MediaFeatureImpl.VideoPlayer(MediaFeatureImpl.java:42)
... 17 more
D/parentInvalidate: parentInvalidate
I/HwViewRootImpl: removeInvalidNode all the node in jank list is out of time

报错信息。

2021-02-22 11:41 负责人:无 分享
已邀请:

最佳回复

8***@qq.com

8***@qq.com (作者) - 前端开发

已经好了,关掉代码混淆就可以了,其他遇到这个问题的同学可以参考下。

  • 秃顶佩奇

    大佬,请问你具体是怎样解决的呢

    2022-03-04 09:50

  • 秃顶佩奇

    回复 秃顶佩奇:可以了,proguard-rules.pro加上-keep class tv.danmaku.ijk.media.player.* {;}就解决了

    2022-03-04 09:56

  • 秃顶佩奇

    回复 秃顶佩奇: 它这里显示有问题,最后面应该是xxxxxx.player.乘乘 {乘;}

    2022-03-04 09:59

DCloud_Android_DQQ

DCloud_Android_DQQ

你用的什么版本。
另外试试用HX打包试试 有没有同样的问题

  • 8***@qq.com (作者)

    我的Hbuilder 版本是 3.0.5,云打包没有任何问题哦,就是安卓离线打包有这个问题;

    2021-02-22 13:58

ihusr

ihusr

在proguard-rules.pro 中添加

-keep class tv.danmaku.ijk.media.player.* {;}

该问题目前已经被锁定, 无法添加新回复