TmT*_*ron 6 java android breakpoints android-studio retrolambda
Android Studio不会在接口的静态方法中停止.
示例:请参阅项目Conductor(version )的Utils.javagetFilteredNotes接口中的方法: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);
}
Run Code Online (Sandbox Code Playgroud)
当我将接口转换为类时,它工作:
public class Utils
Run Code Online (Sandbox Code Playgroud)
为什么断点不能在界面上工作?
更多细节:
2.2.2Nexus_6_API_25.avd
7.1.1x86minifyEnabled=false调试版本的设置没有帮助| 归档时间: |
|
| 查看次数: |
453 次 |
| 最近记录: |