webex / spark-android-sdk

This repo is DEPRECATED. Check our newer Android SDK
https://github.com/webex/webex-android-sdk
Other
10 stars 2 forks source link

Conflicts Dagger2: Program type already present: dagger.Module #29

Closed caka-ict closed 5 years ago

caka-ict commented 6 years ago

Hello,

Is there a way to fix the "Program type already present: dagger.Module" error when using Dagger2 in the Module app. It conflicts with Dagger 1 in your spark-android-sdk. Currently I'm using Android 3.1.3 and Gradle 4.4

Thank you!

DengQiming commented 6 years ago

@caka-ict We have noticed this issue, and already had a plan to update the Dagger version, but no detailed schedule right now.

paintmonkey commented 6 years ago

@caka-ict As a workaround you can try to shadow the dagger2 annotations as described here: https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ which worked for our project to let both libraries exists together.

caka-ict commented 6 years ago

Thanks for the feedback. I will wait for a version new to integrate this. I look forward to doing so soon.

olivierproffit commented 5 years ago

@caka-ict I am closing it this one since it's duplicate with this PR attached to the more recent Webex Android SDK https://github.com/webex/webex-android-sdk/pull/6 Feel free to comment it. Also did the advice from @paintmonkey worked for you @caka-ict