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

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

    Probably this error message can have more than one cause, my case was not like the one from the OP, in my case this was due to a 3rd party library that required additional libraries.

    For example: you manually add X.jar to your LIB, but this X.jar requires Z.jar to work.

    It took me sometime to figure out, the message was not helping at all. I had to debug the app until I reached the crashing class, and in that class make sure that all imports were satisfied.

    (Particualry: I added MercadoLibre-0.3.4.jar, which required commons-httpclient.jar)

    Hope this helps!

提交回复
热议问题