Question

40 views
Skip to first unread message

Mohammad AttarZoghy

unread,
Mar 29, 2023, 11:42:08 AM3/29/23
to Dagger Discuss
Hi dagger Team
After implementing the tutorial step-by-step and fininshing the Withdraw Command Section of tutorial. I get two errors:
1) DepositCommand Class's constructor must have a super(outputter), which you forgot to include. which I solved it by adding the missing part: super(outputter)
2)  I get this error
D:\Android\IranAndroid\DaggerTest\src\main\java\main\CommandProcessorFactory.java:18:8
java: [Dagger/MissingBinding] java.lang.String cannot be provided without an @Inject constructor or an @Provides-annotated method.
      java.lang.String is injected at
          main.Account(username)
      main.Account is injected at
          main.DepositCommand(account, …)
      main.DepositCommand is injected at
          main.UserCommandsModule.depositCommand(command)
      java.util.Map<java.lang.String,main.Command> is injected at
          main.CommandRouter(commands)
      main.CommandRouter is injected at
          main.CommandProcessor(firstCommandRouter)
      main.CommandProcessor is requested at
          main.CommandProcessorFactory.commandProcessor()
  The following other entry points also depend on it:
      main.UserCommandsRouter.router() [main.CommandProcessorFactory → main.UserCommandsRouter] 
please help for this error.
I send my code to better observation.
thnaks agan.


DaggerTest.rar
Reply all
Reply to author
Forward
0 new messages