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

kpradeepkumarreddy profile image K Pradeep Kumar Reddy ・1 min read

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 ??…


Editor guide