angcyo / DslTabLayout

:hearts: Android界最万能的TabLayout(不仅仅是TabLayout), 支持任意类型的item, 支持Drawable类型的指示器,智能开启滚动,支持横竖向布局等
https://github.com/angcyo/DslAdapter
MIT License
1.57k stars 148 forks source link

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. #83

Open WDevaloper opened 1 year ago

WDevaloper commented 1 year ago

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.

angcyo commented 1 year ago

you need update kotlin to

gradle 8+

plugins {
  ...
  id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
  ...
}

gradle 8-

buildscript {
    dependencies {
        ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
        ...
    }
}
WDevaloper commented 1 year ago

没有别的办法吗?1.8.0需要升级 The 'kotlin-android-extensions' Gradle plugin is no longer supported

angcyo commented 1 year ago

复制源码到项目中.

XiaoRanLiu3119 commented 1 year ago

我kt-gradle-plugin1.5.31,本地导module, ktx降到1.3.1完美运行