https://stackoverflow.com/questions/28640513/android-studio-steps-into-wrong-sdk-source
The following workaround worked for me:
- Compile the application without any changes.
- Launch the application in Debug mode (and optionally break on breakpoint).
- Go to
File>Project Structure, find yourappmodule (or/and optionally, any other modules) and change theCompile Sdk Versionto one that matches the device you’re debugging on (i.e. 19). - Step into the framework code – it should step into SDK 19 sources.