gpt4 book ai didi

android - 添加目标jvm后build.gradle android出现错误

转载 作者:行者123 更新时间:2023-12-02 13:32:18 25 4
gpt4 key购买 nike

我收到这样的错误:

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'
}

androidbuild.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'

也许我以错误的方式解决了这个问题,而我不得不使用另一个解决方案?

最佳答案

Duplicate class com.tinder.scarlet.Deserialization found in modules jetified-scarlet-core



请更改版本
implementation 'com.tinder.scarlet:scarlet:0.1.9' // or 0.1.7

阅读 Duplicate dependency compilation error

关于android - 添加目标jvm后build.gradle android出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60737817/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com