Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator

Static interface methods are only supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator.lambda$static$0(okhttp3.Route, okhttp3.Response)

like image 695
M Azam Khan Avatar asked Jan 02 '20 15:01

M Azam Khan


1 Answers

Add this in your build.gradle of your Module:app

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

It will work

like image 176
sai Pavan Kumar Avatar answered Nov 18 '22 10:11

sai Pavan Kumar