일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 리사이클러뷰
- fragment
- ui test
- recyclerview
- ActivityTestRule
- adapter
- high order function
- 코딜리티
- 재사용
- 스와이프
- 테마 아이콘
- searchview
- 안드로이드13
- 생명주기
- viewholder
- LayoutManger
- 안드로이드스튜디오
- Error:Execution failed for task ':app:mergeDebugResources'
- IntentTestRule
- 뷰변경 감지
- 구분선
- 코틀린
- 안드로이드
- Fragment에서 Activity의 함수 사용하기
- 고차함수
- espresso
- Android
- Fragment 수동 추가
- binding adapter
- 안드로이드개발레벨업교과서
Archives
- Today
- Total
룬아님의 취중코딩
Multi Module에서 Hilt를 사용할 때에 cannot access가 발생하는 이슈 본문
Data, Domain 모듈을 분리하고 Hilt를 적용하던 도중
error: cannot access ProductsRemoteDataSource
class file for com.runeanim.data.source.remote.ProductsRemoteDataSource not found
Consult the following stack trace for details.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.runeanim.data.source.remote.ProductsRemoteDataSource not found
cannot access ProductsRemoteDataSource
위와 같은 컴파일 에러가 계속 발생되었다.
https://github.com/google/dagger/issues/1991#issuecomment-707260546
Suggestion needed for using Hilt in library modules · Issue #1991 · google/dagger
In my sample app I have created a separate library module called core. In the core module I am using network and db related dependencies like OkHttp, Retrofit and Room. Hence to access these instan...
github.com
나와 같은 증상을 겪는 사람을 Dagger Issue에서 찾을 수 있었고
implementation대신 api를 사용하는 방법으로 해결하였다.
implementation project(':data')
implementation project(':domain')
->
api project(':data')
implementation project(':domain')
implementation과 api의 차이가 잘 설명되어 있는 곳을 첨부한다.
Implementation VS Api in Android Gradle Plugin - 번역
최초 작성일 : 2017-08-28 17:23:49최종 수정 : 2017-11-29 글에 앞서안녕하세요?룩핀에서 안드로이드 개발을 하고 있는 오경식 이라고 합니다.이 글은 인도 벵갈루루의 Bedanta Bikash Borah님이 Medium에 올린 I
sikeeoh.github.io
반응형
'개발 > 안드로이드 개발' 카테고리의 다른 글
앱내에서 언어 변경 (Appcompat 1.2.0) (0) | 2021.11.08 |
---|---|
Java Callback을 Coroutine으로 변환하기 (0) | 2021.08.09 |
Databinding LiveData가 작동하지 않을 때 확인할 것들 (0) | 2021.05.20 |
Terminal로 딥링크 테스트 하는 방법 (0) | 2020.09.02 |
Viewpager adapter를 이용하여 setUserVisibleHint 호출하기 (0) | 2020.04.21 |
Comments