Rxjava: 2.x: Duplicated file rxjava.properties

Created on 30 Aug 2016  Â·  11Comments  Â·  Source: ReactiveX/RxJava

META-INF/rxjava.properties can be found in both 2.0.0-RC1 and 1.1.8. This causes a build error under android if I include both versions of RxJava without excluding the file.

com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/rxjava.properties
    File1: /home/adi/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.1.8/f9dbae366a6a3d6b5041c5e8db0dcdfdc35c27b5/rxjava-1.1.8.jar
    File2: /home/adi/.gradle/caches/modules-2/files-2.1/io.reactivex.rxjava2/rxjava/2.0.0-RC1/3ee37bb825446a3bafac68a46f2397a8affd9b68/rxjava-2.0.0-RC1.jar
Question

Most helpful comment

For people like me who didn't know where to put the packagingOptions...

For Android projects put it in your app/build.gradle at:

android {
    ...
    packagingOptions {
        exclude 'META-INF/rxjava.properties'
    }
}

All 11 comments

This isn't used at runtime so an exclude is fine.

You can exclude it using packageOptions

I'm closing this issue due to inactivity. If you have further input on the issue, don't hesitate to reopen this issue or post a new one.

since its closed, but still once can exclude this as mentioned by gengjiawen
packagingOptions {
exclude 'META-INF/rxjava.properties'
}

For people like me who didn't know where to put the packagingOptions...

For Android projects put it in your app/build.gradle at:

android {
    ...
    packagingOptions {
        exclude 'META-INF/rxjava.properties'
    }
}

Thanks for every one

thanks all

Use the following code block

android {
    packagingOptions {
        pickFirst 'protobuf.meta'
        }
}

That has nothing to do with this project.

On Wed, Jan 17, 2018, 6:57 AM Sudipta K Paik notifications@github.com
wrote:

Use the following code block

android {
packagingOptions {
pickFirst 'protobuf.meta'
}
}

—
You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/ReactiveX/RxJava/issues/4445#issuecomment-358283310,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEXdnOjhQd_0ZBuJTklvLFI8yIRBkks5tLeBDgaJpZM4JxApb
.

how can add ERC20

nice

Was this page helpful?
0 / 5 - 0 ratings