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

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

    Android Studio takes source version equal to Target Version in your application. Compilation performed with source version equal to above mentioned Compile Version. So, take care that in your project Compile Version == Target Version (adjust module's build.gradle file).

提交回复
热议问题