Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dagger.internal.codegen.ComponentProcessor was unable to process 'com.pss.presentation.viewmode.SplashViewModel' because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code. #1

Open
ParkSangSun1 opened this issue Feb 2, 2022 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@ParkSangSun1
Copy link
Owner

ParkSangSun1 commented Feb 2, 2022

Korean

  • 문제 - Firebase 관련 module을 만들고 주입을 받는 과정에서 빌드 오류 발생

  • 로그 - 아래 코드 참조

dagger.internal.codegen.ComponentProcessor was unable to process 'com.pss.presentation.viewmode.SplashViewModel' because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
  • 원인 - app 모듈 부분의 gradle에는 firebase 종속성이 추가되어 있었지만 presentation 모듈 부분의 gradle에는 종속성이 누락돼있었다

  • 해결 - presentation 모듈 gradle에 firebase 관련 종속성을 추가하였다

    implementation 'com.google.firebase:firebase-database-ktx:20.0.3'
    implementation 'com.google.firebase:firebase-firestore-ktx:24.0.0'
  • 커밋 로그 - dcb3bf9 (Fix : Hilt 빌드 에러 해결)

English

  • Problem - Build error in the process of creating and injecting a module related to Firebase

  • Log - Refer to the code below

dagger.internal.codegen.ComponentProcessor was unable to process 'com.pss.presentation.viewmode.SplashViewModel' because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
  • Cause - Firebase dependency was added to the gradle in the app module part, but the dependency was omitted in the gradle in the presentation module part

  • Solution - Firebase dependencies were added to the presentation module gradle

    implementation 'com.google.firebase:firebase-database-ktx:20.0.3'
    implementation 'com.google.firebase:firebase-firestore-ktx:24.0.0'
  • Commit log - dcb3bf9 (Fix : Hilt 빌드 에러 해결)
@ParkSangSun1 ParkSangSun1 added bug Something isn't working documentation Improvements or additions to documentation labels Feb 2, 2022
@ParkSangSun1 ParkSangSun1 self-assigned this Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant