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

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

    My app is compiled on API LEVEL 29, but debugging on real device on API LEVEL 28.I got the warning source code does not match the bytecode in AndroidStudio.I fixed it thought these steps:

    1. Go to Preferences>Instant Run: uncheck the instant run

    2. Go to Build>Clean Build

    3. Re-RUN the app

    Now, the debug runs normal.

提交回复
热议问题