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

前端 未结 15 1767
时光取名叫无心
时光取名叫无心 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:35

    So I created an account just so I could help fix this problem that is plaguing a lot of people and where the fixes above aren't working.

    If you get this error and nothing here helps. Try clicking the "Resume program play button" until the program finishes past the error. Then click in the console tab next to debug and read the red text.

    I was getting that source code error even though my issue was trying to insert a value into a null Array. Step 1 Click the resume button

    Step 2 Click the console tab and read the red text

提交回复
热议问题