Android(安卓)Studio之编译t提示Invoke-customs are only supported starting with Android(安卓)O (--min-api 26)
16lz
2021-12-04
1 问题
编译别人的项目,错误提示如下
Invoke-customs are only supported starting with Android O (--min-api 26)
2 解决办法
在app的build.gradle的android节点下添加如下代码
android { compileSdkVersion 28 defaultConfig { } buildTypes { } //需要添加如下代码 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }}
更多相关文章
- Android: Android(安卓)Light Sensor HOWTO
- Android添加USB add-on硬件访问服务
- Android矢量动画-VectorDrawable
- 使用AIDL实现Android的跨进程通信
- android 使用TextView/EditText应该注意的地方
- android:shape的使用2
- android:required="false"
- ListView之setEmptyView的问题
- Android(安卓)导入 aar包引起的Error:Failed to resolve: :xxxaa