Tinder / Scarlet

A Retrofit inspired WebSocket client for Kotlin, Java, and Android
Other
3.22k stars 236 forks source link

More than one file was found with OS independent path 'META-INF/io.netty.versions.properties' #105

Open SanRam opened 5 years ago

SanRam commented 5 years ago

// websocket def scarlet_version="0.2.4" implementation "com.github.tinder.scarlet:scarlet:$scarlet_version"

// Optional
implementation "com.github.tinder.scarlet:scarlet-protocol-websocket-okhttp:$scarlet_version"
implementation "com.github.tinder.scarlet:scarlet-lifecycle-android:$scarlet_version"
implementation "com.github.tinder.scarlet:scarlet-stream-adapter-rxjava2:$scarlet_version"
implementation "com.github.tinder.scarlet:scarlet-message-adapter-moshi:$scarlet_version"

During building I am getting this error. I added scarlet-lifecycle-android, before that everything worked fine. More than one file was found with OS independent path 'META-INF/io.netty.versions.properties'

shalfknight commented 4 years ago

When using Scarlet, I had to apply this lines in my packaging options:

packagingOptions {
    pickFirst "META-INF/INDEX.LIST"
    pickFirst "META-INF/io.netty.versions.properties"
}

Maybe you won't need need the first line but hopefully the io.netty.versions.properties pick first specification will solve your problem