android studio error: Default interface methods are only supported starting with Android N (--min-api 24)

2019-01-15 22:10:45

as CommonsWare mentioned, for reference add this inside the android {...} closure in the build.gradle for your app module to resolve issue:

android {...
  compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8    }...}


  • 2021-11-03 19:59:58

    Android 11 adb无线调试使用方法

    ​Android 11无线调试不需要再像以前一样,先插上usb线,输入命令来启用无线调试,再进行无线连接了。Android 11系统设置开发者选项中自带了无线调试,今天亲自测试了