I'm using Android Studio 3.1.2 to develop my first Android apps.
When I am debugging and wander into one of the Android classes, like Activity.class, I frequently see a message that says "source code does not match the bytecode". This always seems to happen to the built-in classes rather than the ones I am writing myself.
Why is that happening and what can I do to fix it? It's hard to even begin to understand what is happening in a class when the cursor is on some line of code that ISN'T the one actually being executed. Have I installed something incorrectly? I didn't notice any worrisome messages during the install and I've been careful to do every update it offered me.
This is not a deal-breaker for me as long as it confines itself to the existing Android classes; I can just assume that they work and that any problem is in the code I wrote. Still, it would be nice to be able to follow what is happening in the native Android class sometimes just to understand what is happening a little better and maybe learn some cool coding tricks ;-)
When I am debugging and wander into one of the Android classes, like Activity.class, I frequently see a message that says "source code does not match the bytecode". This always seems to happen to the built-in classes rather than the ones I am writing myself.
Why is that happening and what can I do to fix it? It's hard to even begin to understand what is happening in a class when the cursor is on some line of code that ISN'T the one actually being executed. Have I installed something incorrectly? I didn't notice any worrisome messages during the install and I've been careful to do every update it offered me.
This is not a deal-breaker for me as long as it confines itself to the existing Android classes; I can just assume that they work and that any problem is in the code I wrote. Still, it would be nice to be able to follow what is happening in the native Android class sometimes just to understand what is happening a little better and maybe learn some cool coding tricks ;-)