Archie
08/25/2020, 12:11 PM@AndroidEntryPoint
class MyFragment: Fragment(), SomeInterfaceFromALibrary {
@Inject
lateinit var someClass: SomeClass
....
}
Now whenenver I build my project it says "could not access SomeInterfaceFromALibrary"
The only way I fixed it was to add the same dependency in the main module:
:app
...
dependencies {
implementation "someLibrary:version"
}
:otherModule
...
dependencies {
implementation "someLibrary:version"
}
Is this intended or am I doing something wrong?Jovan
08/25/2020, 12:18 PMJovan
08/25/2020, 12:21 PMArchie
08/25/2020, 12:22 PMSomeInterfaceFromALibrary
or any object within the library to the dependency graph.Jovan
08/25/2020, 12:23 PMArchie
08/25/2020, 12:24 PM@AndroidEntryPoint
class MyFragment: Fragment() {
@Inject
lateinit var someClass: SomeClass
private val myObject: SomeInterfaceFromALibrary {
....
}
....
}
I still get the same error.Archie
08/25/2020, 12:28 PMAssistedInject
could this possible be related?Jovan
08/25/2020, 12:30 PMArchie
08/25/2020, 12:30 PM