仅从 Android N (--min-api 24) 开始支持静态接口方法 [英] Static interface methods are only supported starting with Android N (--min-api 24)
本文介绍了仅从 Android N (--min-api 24) 开始支持静态接口方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我什么都不做,只是创建新项目然后发现这个错误.请帮助我
I do nothing, just create new project then find this error. pls help me
推荐答案
这是一个常见问题,您只需要添加
This is a common issue and you just need to add
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
...
}
这篇关于仅从 Android N (--min-api 24) 开始支持静态接口方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文