What I need to import to make this work? ```class ...
# kodein
e
What I need to import to make this work?
Copy code
class MainActivity : ComponentActivity(), DIAware {

    override val di by di()
Right now getting
Type checking has run into a recursive problem. Easiest workaround: specify types of your declarations explicitly
and looks like AS doesn’t know what is
di()
I am using v7.21.2 with main dependency in the common module and
kodein-di-framework-android-x
in the androidMain.
r
Here you need to use
closestDi()
in that context.
e
@romainbsl Thank you!