ButterKnife集成后编译报错:要使用 Java1.8

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hfy8971613/article/details/84541481

解决方法——gradle添加 :

android {
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
}

即可。

报错信息:

猜你喜欢

转载自blog.csdn.net/hfy8971613/article/details/84541481