How do I make Dagger 1 and Dagger 2 coexist together in one Android project?
up vote
0
down vote
favorite
We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by step. For that we were thinking to have both versions as our project dependency and do the migration module by module. But we were unable to make it work. This is the article we referred https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ but without any luck or is there any other way? Thanks.
android gradle dagger-2 dagger shadowjar
add a comment |
up vote
0
down vote
favorite
We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by step. For that we were thinking to have both versions as our project dependency and do the migration module by module. But we were unable to make it work. This is the article we referred https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ but without any luck or is there any other way? Thanks.
android gradle dagger-2 dagger shadowjar
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by step. For that we were thinking to have both versions as our project dependency and do the migration module by module. But we were unable to make it work. This is the article we referred https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ but without any luck or is there any other way? Thanks.
android gradle dagger-2 dagger shadowjar
We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by step. For that we were thinking to have both versions as our project dependency and do the migration module by module. But we were unable to make it work. This is the article we referred https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ but without any luck or is there any other way? Thanks.
android gradle dagger-2 dagger shadowjar
android gradle dagger-2 dagger shadowjar
asked Nov 14 at 2:09
Rick Sanchez
728615
728615
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
There's no other way.
When trying to use both Dagger versions together, you might run into different situations like classpath clashes and conflicts or transitive dependencies issues. So, in order to avoid them, we have to somehow relocate Dagger 2 packages.
As the text said.
But I am not able to relocate Dagger 2 package with the latest android build tool and gradle version by following the steps in the article. Can you help?
– Rick Sanchez
Nov 14 at 3:19
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There's no other way.
When trying to use both Dagger versions together, you might run into different situations like classpath clashes and conflicts or transitive dependencies issues. So, in order to avoid them, we have to somehow relocate Dagger 2 packages.
As the text said.
But I am not able to relocate Dagger 2 package with the latest android build tool and gradle version by following the steps in the article. Can you help?
– Rick Sanchez
Nov 14 at 3:19
add a comment |
up vote
0
down vote
There's no other way.
When trying to use both Dagger versions together, you might run into different situations like classpath clashes and conflicts or transitive dependencies issues. So, in order to avoid them, we have to somehow relocate Dagger 2 packages.
As the text said.
But I am not able to relocate Dagger 2 package with the latest android build tool and gradle version by following the steps in the article. Can you help?
– Rick Sanchez
Nov 14 at 3:19
add a comment |
up vote
0
down vote
up vote
0
down vote
There's no other way.
When trying to use both Dagger versions together, you might run into different situations like classpath clashes and conflicts or transitive dependencies issues. So, in order to avoid them, we have to somehow relocate Dagger 2 packages.
As the text said.
There's no other way.
When trying to use both Dagger versions together, you might run into different situations like classpath clashes and conflicts or transitive dependencies issues. So, in order to avoid them, we have to somehow relocate Dagger 2 packages.
As the text said.
answered Nov 14 at 3:14
Luciano Moura
113
113
But I am not able to relocate Dagger 2 package with the latest android build tool and gradle version by following the steps in the article. Can you help?
– Rick Sanchez
Nov 14 at 3:19
add a comment |
But I am not able to relocate Dagger 2 package with the latest android build tool and gradle version by following the steps in the article. Can you help?
– Rick Sanchez
Nov 14 at 3:19
But I am not able to relocate Dagger 2 package with the latest android build tool and gradle version by following the steps in the article. Can you help?
– Rick Sanchez
Nov 14 at 3:19
But I am not able to relocate Dagger 2 package with the latest android build tool and gradle version by following the steps in the article. Can you help?
– Rick Sanchez
Nov 14 at 3:19
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292197%2fhow-do-i-make-dagger-1-and-dagger-2-coexist-together-in-one-android-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown