美文网首页
Error: Static interface methods

Error: Static interface methods

作者: 夜瑾漠 | 来源:发表于2019-06-01 14:32 被阅读0次

    问题描述:

    我这边使用了ButterKnife 9.0.0,而java8才支持静态接口方法,忘了配置

    解决方法:

    在app的build.gradle中进行如下配置:

    android {
        compileSdkVersion 28
        ·
        ·
        ·
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
    }
    

    相关文章

      网友评论

          本文标题:Error: Static interface methods

          本文链接:https://www.haomeiwen.com/subject/vgxatctx.html