'Source code does not match the bytecode' when debugging on a device

前端 未结 15 1791
时光取名叫无心
时光取名叫无心 2020-11-28 08:07

I have an app which I am compiling against API level 21:

and then debug it on a real device with API level 23:

The problem is when I try debugging

15条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 08:18

    Here is my solution:

    If you got more than one library version, this may help.

    1. set a breakpoint on the lib source code
    2. let the code run to the breakpoint
    3. you will got these tips

    1. click the arrow icon

    2. you will get this

    3. double click to select the correct lib (normally the highest version of the lib is correct)

    I have clicked the "disable" button by mistake, you can enable it in the debugger setting

    If you do not have the tips in the step 3, maybe you can check whether you have checked the setting options

提交回复
热议问题