最近使用java项目引入了一个kotlin的aar 导致的错误,个人记录一下
在根build 下添加kotlin引入
buildscript { ext.kotlin_version = "1.4.32" repositories { google() jcenter() maven { url 'https://jitpack.io' } } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }