W/System.err: java.lang.NoSuchMethodError: no non-static method "Ltv/danmaku/ijk/media/player/misc/IAndroidIO;.open(Ljava/lang/String;)I" W/System.err: 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) W/System.err: at tv.danmaku.ijk.media.player.IjkMediaPlayer.U(IjkMediaPlayer.java:190) at io.dcloud.media.video.ijkplayer.media.IjkPlayerView._initMediaPlayer(IjkPlayerView.java:353) at io.dcloud.media.video.ijkplayer.media.IjkPlayerView.init(IjkPlayerView.java:507) at io.dcloud.media.video.ijkplayer.VideoPlayerView.(VideoPlayerView.java:56) at io.dcloud.media.video.DHVideoFrameItem.(DHVideoFrameItem.java:62)
解决办法:
在proguard-rules.pro 中添加?
-keep class tv.danmaku.ijk.media.player.** {*;}
混淆问题,注意一定要player.后加两个*,同时看文件中其他的写法,这个问题困扰好久,终于解决了
|