[英]Error at build.gradle android after adding target jvm
我收到这样的错误:
Duplicate class com.tinder.scarlet.Deserialization found in modules jetified-scarlet-core-0.1.10.jar (com.github.tinder.scarlet:scarlet-core:0.1.10) and jetified-scarlet-core-0.1.10.jar (com.tinder.scarlet:scarlet-core:0.1.10)
添加这些行后,我开始收到此错误:
kotlinOptions {
jvmTarget = '1.8'
}
到我的android
范围build.gradle
。 所有这些行动都是为了解决这个问题:
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
我在这一行看到的这个问题:
val myService = scarlet.create<MessageService>() // word create was highlighted
我的gradle实现:
implementation 'com.tinder.scarlet:scarlet:0.1.10'
implementation 'com.github.tinder.scarlet:scarlet-message-adapter-moshi:0.1.10'
implementation 'com.github.tinder.scarlet:scarlet-stream-adapter-rxjava2:0.1.10'
implementation 'com.github.tinder.scarlet:scarlet-websocket-okhttp:0.1.10'
也许我以错误的方式解决了这个问题,我不得不使用另一种解决方案?
在 jetified-scarlet-core 模块中发现重复类 com.tinder.scarlet.Deserialization
请更换版本
implementation 'com.tinder.scarlet:scarlet:0.1.9' // or 0.1.7
阅读重复依赖编译错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.