Default interface methods are only supported starting with Android 7.0 (Nougat)
As CommonsWare mentioned, for reference add this inside the android {...}
closure in the build.gradle for your app module (app level) to resolve the issue:
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
...
}
Static interface methods are only supported starting with Android N (--min-api 24)
This is a common issue and you just need to add
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
...
}
There is explanation and direction in this link
Related Topics
Gradle Failed to Resolve Library in Android Studio
How to Autoincrement Versioncode in Android Gradle
How to Insert a SQLite Record with a Datetime Set to 'Now' in Android Application
How to Use Autocompletetextview and Populate It with Data from a Web API
How to Receive Serial Data Using Android Bluetooth
Android Volley + JSONobjectrequest Caching
Design Layout for Multiple Screens
Passing Strings Between Activities in Android
How to Disable Instant Run for Android Studio 3.0
How to Read "Adb Shell Dumpsys Alarm" Output
How to Maintain the Immersive Mode in Dialogs
How to Use the Paid Version of My App as a "Key" to the Free Version