'Source code does not match the bytecode' when debugging on a device
There's an open issue for this in Google's IssueTracker.
The potential solutions given in the issue (as of the date of this post) are:
- Click Build -> Clean
- Disable Instant Run, in Settings -> Build, Execution, Deployment
Here is my solution:
If you got more than one library version, this may help.
- set a breakpoint on the lib source code
- let the code run to the breakpoint
- you will got these tips
click the arrow icon
you will get this
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