【问题标题】:supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator从 Android N (--min-api 24) 开始支持:okhttp3.Request okhttp3.Authenticator
【发布时间】:2023-03-17 21:45:01
【问题描述】:

仅从 Android N (--min-api 24) 开始支持静态接口方法:okhttp3.Request okhttp3.Authenticator.lambda$static$0(okhttp3.Route, okhttp3.Response)

【问题讨论】:

    标签: android android-studio okhttp android-studio-3.0


    【解决方案1】:

    将此添加到您的 Module:app

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

    会有用的

    【讨论】:

    • 当前的JavaVersion 是什么。你是在降低java版本还是增加。
    猜你喜欢
    • 2019-04-23
    • 1970-01-01
    • 2020-12-02
    • 1970-01-01
    • 2016-12-29
    • 2020-06-25
    • 2018-12-23
    • 2021-04-26
    • 2019-12-05
    相关资源
    最近更新 更多