bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.55k stars 8.13k forks source link

Didn't find class "tv.danmaku.ijk.media.player.misc.IIjkIOHttp" #5525

Closed FailedToRead closed 1 year ago

FailedToRead commented 1 year ago

异常如下: java.lang.ClassNotFoundException: Didn't find class "tv.danmaku.ijk.media.player.misc.IIjkIOHttp" on path: DexPathList[[zip file "/data/app/com.edufound.reader-1/base.apk"],nativeLibraryDirectories=[/data/app/com.edufound.reader-1/lib/x86, /data/app/com.edufound.reader-1/base.apk!/lib/x86, /vendor/lib, /system/lib]]

但是在 ijkplayer\x86\src\main\jni\ijkmedia\ijkj4a\java\tv\danmaku\ijk\media\player\misc文件夹下存在IIjkIOHttp文件。 98bbb39a2710c80f587bee322f4a9514a9c28236793609a2e5cdadba34c2f48bQzpcVXNlcnNcY2FuZHlcQXBwRGF0YVxSb2FtaW5nXERpbmdUYWxrXDI0MzA0NzI0X3YyXEltYWdlRmlsZXNcMTY4MTk2MjIwMjI2OF84NTUzQUE1Ri1BMkU4LTQxZDgtOUYwNS00RDBEMjM2OEQ0QUQucG5n

编译步骤如下:

  1. git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
  2. cd ijkplayer-android
  3. git checkout -B latest k0.8.8
  4. cd config
  5. rm module.sh
  6. ln -s module-default.sh module.sh
  7. sudo vim module.sh,再末尾加入export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-openssl"
  8. cd android/contrib
  9. sh compile-ffmpeg.sh clean
  10. cd ..
  11. cd ..
  12. ./init-android.sh
  13. ./init-android-openssl.sh
  14. cd android/contrib
  15. ./compile-openssl.sh clean
  16. ./compile-openssl.sh all //编译OpenSSL
  17. ./compile-ffmpeg.sh clean
  18. ./compile-ffmpeg.sh all
  19. cd ..
  20. ./compile-ijk.sh all

无论怎样编译都会出现找不到IIjkIOHttp这个类的问题

请各位大佬帮帮忙,拜托了。

FailedToRead commented 1 year ago

按照以下步骤编译就通过了,发现没有这个iijkIOHttp什么事儿。。 1.git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android 2.cd ijkplayer-android 3.git checkout -B latest k0.8.8 4.cd config 5.rm module.sh 6.ln -s module-default.sh module.sh

  1. ./init-android.sh
  2. ./init-android-openssl.sh
  3. cd android/contrib
  4. ./compile-openssl.sh clean
  5. ./compile-openssl.sh all
  6. ./compile-ffmpeg.sh clean
  7. ./compile-ffmpeg.sh all
  8. cd ..
  9. ./compile-ijk.sh clean
  10. ./compile-ijk.sh all