I'm debugging an app using Android Studio debugger. I stepped into some system classes and got the common "Source code does not match the bytecode" message. A "alternative source available for class..." bar also appeared. There's a spinner allowing me to select the sources to use with the debugger.
The only choice I have is between Android API 25 and 26 platforms, despite the fact that I have also downloaded and installed sources for other API levels. I'd like to preview the sources for API 22.
Android API 25 and 26 platforms are the only Android sources listed under the "External Libraries" section in the Project sidebar.
I'm running Android Studio 3.0.1.
I managed to find a workaround for this problem. To get the desired Android sources to be available for preview in the debugger:
compileSdkVersion
in build.gradle to the chosen API levelIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With