[英]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.