bilibili / ijkplayer

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

Android studio如何debug? #2576

Open jeaman opened 7 years ago

jeaman commented 7 years ago

编译成功后,执行sh android/patch-debugging-with-lldb.sh armv7a出现以下错误:

patch apply ==> armv7a git apply ==> patches/0001-gitignore-ignore-.externalNativeBuild.patch git apply ==> patches/0002-gradle-upgrade-build-tool-to-2.2.0-beta2.patch error: patch failed: android/ijkplayer/ijkplayer-example/build.gradle:44 error: android/ijkplayer/ijkplayer-example/build.gradle: patch does not apply git apply ==> patches/0003-armv7a-enable-debugging-with-LLDB.patch error: patch failed: ijkmedia/ijkplayer/Android.mk:59 error: ijkmedia/ijkplayer/Android.mk: patch does not apply git apply ==> patches/0004-armv7a-link-prebuilt-staic-libraries-of-ffmepg.patch

ctiao commented 7 years ago

文件修改后patch失效了,过一阵我会把这个patch修改成正式代码提交

babyfish21 commented 7 years ago

patch好像还是不行,请问什么时候能修好,谢谢🙏

Fanping commented 7 years ago

@babyfish21 You can solve as follow:

  1. Open android/patch-debugging-with-lldb.sh, make sure the patches which would be apply.
  2. Manual change the code base on the patches.
  3. Build your project,it would be fine.
whrwhr446 commented 7 years ago

这个问题什么时候可以解决哈?@Fanping 给的answer 完全看不懂

marinat commented 7 years ago

I have same problem, how to solve it? wait for fix commit?

wenxiaoming commented 6 years ago

I also have such problem.

YQWang-Dev commented 6 years ago

@ctiao Please make new patch files., thanks

zdhsoft commented 5 years ago

马上2019了,这个问题还没有解决....

tuchengdong commented 4 years ago

马上2020了, 这个问题还没有解决....

befovy commented 4 years ago

这里解决了Debug 问题 https://blog.befovy.com/2019/06/issue_20190630_5/

Angle-bo commented 3 years ago

马上2021年,这个失效的sh文件依然未修复。。README.md中的编译debug中又有这条命令。最新编译debug没有详细的说明文档吗?