\n
These should be the duplicate classes\n
You can find all the dependencies of your project with the command
\n./gradlew :app:dependencies
Bitmovin and Purchasely seems to both use exoplayer.\nSo to avoid conflicts you can remove the module exoplayer from either one of those dependencies.
\nIn your case, I think you should remove it from Purchasely
\nimplementation ("io.purchasely:core:2.4.7") {\n exclude module: 'exoplayer-core'\n exclude module: 'exoplayer-hls'\n exclude module: 'exoplayer-dash'\n exclude module: 'exoplayer-ui'\n exclude module: 'extension-okhttp'\n exclude module: 'extension-mediasession'\n}\n
\n","author":{"@type":"Person","name":"Kerwan"},"upvoteCount":3}}}Reputation: 563
In this project, I need to integrate two libraries Bitmovin and Purchasely. After I added those two dependencies, the app can not run due to a conflict between bitmovin and puchasely library. I know there's one way to solve this by excluding all those duplicate classes. Unfortunately, I'm not familiar with this term and can not figure out what is the group name and module name to exclude. Also, I'm not sure which dependency that I should use "exclude" with.
implementation ("com.bitmovin.player:playercore:2.64.0"){
exclude group: 'group_name', module: 'module_name'
}
implementation ("io.purchasely:core:2.4.5"){
exclude group: 'group_name', module: 'module_name'
}
If I successfully remove the duplication classes, would it cause any one of the libraries to stop working or break at run time?
These should be the duplicate classes
Upvotes: 3
Views: 6546
Reputation: 1198
You can find all the dependencies of your project with the command
./gradlew :app:dependencies
Bitmovin and Purchasely seems to both use exoplayer. So to avoid conflicts you can remove the module exoplayer from either one of those dependencies.
In your case, I think you should remove it from Purchasely
implementation ("io.purchasely:core:2.4.7") {
exclude module: 'exoplayer-core'
exclude module: 'exoplayer-hls'
exclude module: 'exoplayer-dash'
exclude module: 'exoplayer-ui'
exclude module: 'extension-okhttp'
exclude module: 'extension-mediasession'
}
Upvotes: 3