Android Studio does not stop on lines in a static method of an interface.
Example: see method getFilteredNotes
in the interface Utils.java of project Conductor (version 0.9.3
):
public interface Utils {
// some lines removed for readability
static List<Note> getFilteredNotes(AppState appState) {
List<Note> notes = appState.notes();
NotesFilter filter = appState.filter();
return filter(ConsPStack.from(notes), note ->
filter == NotesFilter.ALL
|| filter == NotesFilter.CHECKED && note.checked
|| filter == NotesFilter.UNCHECKED && !note.checked);
}
when I convert the interface to a class, then it works:
public class Utils
Why do the breakpoints not work on the interface?
More details:
- Android Studio Version
2.2.2
- Virtual Device:
Nexus_6_API_25.avd
- Android:
7.1.1
- CPU:
x86
- Android:
- setting
minifyEnabled=false
for the debug build did not help - the project is using retrolambda