I upgraded to android studio 3.1 and I\'m getting the following error:
Default interface methods are only supported starting with Android N (--min-api 24): vo
As CommonsWare mentioned, for reference add this inside the android {...} closure in the build.gradle for your app module to resolve issue:
android {...}
android { ... compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } ... }