我试图在我的Kotlin项目中使用Java库。在我的项目中创建库中定义的类型的变量很好,例如val foo: Foo = fooProvider.get(),但是引入实际使用这些类型的代码(例如foo.toString() )会导致编译错误:
Error:Kotlin: Supertypes of the following classes ca
我正在为Android和iOS构建一个多平台库。我的梯度文件如下所示: id 'org.jetbrains.kotlin.multiplatform' version '1.4.0'repositories {} }}
compileClasspath我正在使用第三方库,我使用它的方式如下:
fun-