My project includes RecyclerView as a dependency with gradle.
dependencies {
...
compile 'com.android.support:recyclerview-v7:21.0.3'
}
I want to debug a function in RecyclerView. When I go to the function, use "Ctrl-B", the source file:
...\m2repository\com\android\support\recyclerview-v7\21.0.3\recyclerview-v7-21.0.3-sources.jar!\android\support\v7\widget\RecyclerView.java
And I switch the breakpoint in it, for example, line 200. But when I connected the debugger and started the application, the debugger stopped on line 200 of another file:
...\android-sdk\sources\android-21\android\support\v7\widget\RecyclerView.java
This is the source code from android sdk, which is another version from the java support library.
How to make the debugger use the source file from recyclerview-v7-21.0.3-sources.jar?
source
share