简体   繁体   中英

Error at build.gradle android after adding target jvm

I receive such error:

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)

I started receiving this error after adding these lines:

kotlinOptions {
    jvmTarget = '1.8'
}

to my android scopes at build.gradle . All these actions were made for solving this problem:

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

This problem I saw at this line:

val myService = scarlet.create<MessageService>() // word create was highlighted

My gradle implementations:

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'

Maybe I solved this problem in a wrong way and I have to use another solution?

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

Kindly change version

implementation 'com.tinder.scarlet:scarlet:0.1.9' // or 0.1.7

Read Duplicate dependency compilation error .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM