DEV Community

K Pradeep Kumar Reddy
K Pradeep Kumar Reddy

Posted on

Not able to figure out how to use dagger in my app. Seems to be the case of circular dependency

Following is the dependency graph of my app. GameView constructor looks as follows

class GameView (
    private var gameActivity: GameActivity
    private val screenWidth: Int,
    private val screenHeight: Int
) : SurfaceView(gameActivity), Runnable {

GameView takes an GameActivity instance as a parameter Is this the case of circular dependency ??…

Top comments (0)